>> On Thu, Jun 23, 2011 at 10:40 AM, Stuart Halloway >> <stuart.hallo...@gmail.com> wrote: >>> The docs (http://clojure.org/reader) are specific: >>> '/' has special meaning, it can be used once in the middle of a symbol to >>> separate the namespace from the name, e.g. my-namespace/foo. '/' by itself >>> names the division function. >> >> Specific perhaps, but incomplete. The docs don't provide enough >> information to determine the validity or meaning or 'a/b/c.d for >> example. >> >> The docs say what '/ means (by itself) and what 'a/b means (used once >> - we'll put aside the imprecision of "in the middle of a symbol") but >> not what "used more than once" means. > > > On Thu, Jun 23, 2011 at 20:20, Ken Wesson <kwess...@gmail.com> wrote: >> On Thu, Jun 23, 2011 at 1:48 PM, Sean Corfield <seancorfi...@gmail.com> >> wrote: >>> The docs say what '/ means (by itself) and what 'a/b means (used once >>> - we'll put aside the imprecision of "in the middle of a symbol") >> >> I think that's fairly clear: that the portions of the symbol to each >> side of the / are non-empty. "In the middle" as opposed to "at one end >> or the other". > > > I disagree. It's not at all clear from the above description how the > reader will interpret "a/b/c": > > (1) namespace: a/b > name: c > > (2) namespace: a > name: b/c > > (3) throw an exception since the string violates "it can be used once". > > The reader as implemented behaves as (1), though it's not clear from > the documentation why this would be preferred above (2) or (3). > > // Ben
The docs at clojure.org do not aspire to enumerate every possible scenario, especially regarding the things that Clojure does *not* do. If the docs don't say "you can do this," then you should assume you can't (or at least shouldn't). Stu Stuart Halloway Clojure/core http://clojure.com -- 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