You could add check for other keys than :then and :else being used.
For documentation, I'd add a docstring "Macro, similar to if but with
branches labeled by keywords :then, :else." + the usage examples you posted.

Also, have you looked at cond and if-not?
Using cond to me feels like labeling the branches, if-not allows to switch
the args when compared to if.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to