On Saturday, April 7, 2012 2:24:21 PM UTC-7, r0man wrote: > > Why do you think it is impossible to have the same API in Clojure > and ClojureScript? >
For instance, hiccup.core/html and hiccup.core/h cannot live in the same namespace in ClojureScript if hiccup.core/html is going to be a macro, and hiccup.core/h is going to be a run-time function (which is how things are implemented in hiccup). Well, I guess maybe they can (I have not tested this), but then you'd end up with ambiguities like this (in ClojureScript): (ns example (:use [crate.core :as crate.core]) (:use-macros [crate.core :as crate.core])) I suppose that could be worked around by giving each alias a different namespace, but that seems very confusing to me and I'm not even sure it would work. -Evan -- 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