How should this python be expressed
gl_enums = ...
in clojure? It works, but right?
(def gl-enums ...) ; map from name to values for opengl enums
(defn gl-enum [k] (or (gl-enums k) (throw (SomeException.))))
; use with (gl-enum :enum-name)
edit: for clarification, this question is about the exception throwing part, not the map defining part
naiad source
share