Hi, Is this inconsistent behaviour:
user=> `s/foo s/foo user=> ::s/foo #<RuntimeException java.lang.RuntimeException: Invalid token: ::s/foo> nil user=> (require '[clojure.string :as s]) nil user=> `s/foo clojure.string/foo user=> ::s/foo :clojure.string/foo I think that ::s/foo should be resolved to :s/foo if there is no alias for s (like symbols). Jonas On Monday, March 12, 2012 1:50:50 AM UTC+2, Meikel Brandmeyer (kotarak) wrote: > > Hi, > > Am 12.03.2012 um 00:09 schrieb Stuart Sierra: > > > The syntax ::s/kwd is incorrect syntax: it should be either ::kwd (which > will resolve in the current namespace) or :s/kwd (only one colon). > > The reader page says, with :: they are resolved in the current namespace. > And this seems to work since they where introduced: > > user=> (require '[clojure.string :as s]) > nil > user=> ::s/join > :clojure.string/join > user=> `s/join > clojure.string/join > > Just as s/join gets resolved to the clojure.string/join, ::s/join gets > resolved to :clojure.string/join. Sounds consistent and not in violation of > the reader page. > > Sincerely > Meikel > > -- 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