title: Enums and Clojure
body: <p>In the Java/C world, people often use enums. If I'm using a Java library which using enums, I can convert between them and keywords, for example, using <code>(. java.lang.Enum valueOf e..., (aget ^"[Ljava.lang.Enum;" (. e (getEnumConstants)) i)</code>, and some reflection. But in the Clojure world, do people ever need anything like an enum (a named integer) ? If not, how is their code structured that they don't need them ? If yes, what's the equivalent ? I sense I'm really asking about indices (for looping), which are rarely used in functional programming (I've used map-indexed only once so far).</p>