Re: Can the namespace portion of a symbol contain slashes?

2011-06-24 Thread Meikel Brandmeyer
Hi, Am 24.06.2011 um 01:59 schrieb Sean Corfield: Which is the whole point: the docs ascribe meaning to a/b and to / but do not ascribe meaning to a/b/c I'm sorry, but what is difficult about “it can be used *once*”. I understand that as “there can be zero or one slashes in a symbol”.

Re: Can the namespace portion of a symbol contain slashes?

2011-06-24 Thread B Smith-Mannschott
On Fri, Jun 24, 2011 at 08:54, Meikel Brandmeyer m...@kotka.de wrote: Hi, Am 24.06.2011 um 01:59 schrieb Sean Corfield: Which is the whole point: the docs ascribe meaning to a/b and to / but do not ascribe meaning to a/b/c I'm sorry, but what is difficult about “it can be used *once*”. I

Re: Can the namespace portion of a symbol contain slashes?

2011-06-24 Thread Meikel Brandmeyer
Hi, Am 24.06.2011 um 09:13 schrieb B Smith-Mannschott: Ah. Undefined behavior by virtue of the fact that it goes umentioned in the documentation. How tautological. Alternately one could consider explicitly documenting undefined behavior. I think that's why we were talking past eachother. You

Re: Can the namespace portion of a symbol contain slashes?

2011-06-24 Thread Sean Corfield
On Thu, Jun 23, 2011 at 11:54 PM, Meikel Brandmeyer m...@kotka.de wrote: I'm sorry, but what is difficult about “it can be used *once*”. I understand that as “there can be zero or one slashes in a symbol”. Everything else is an invalid symbol and feeding it to the reader is undefined

Can the namespace portion of a symbol contain slashes?

2011-06-23 Thread B Smith-Mannschott
user (name 'a/b/c) c user (namespace 'a/b/c) a/b Is this intentional? I would have expected a/b/c to be rejected as a symbol name since we use slashes to separate namespace from name and conventionally use . to indicate hierarchy in namespace names. // Ben -- You received this message because

Re: Can the namespace portion of a symbol contain slashes?

2011-06-23 Thread Ken Wesson
On Thu, Jun 23, 2011 at 11:55 AM, B Smith-Mannschott bsmith.o...@gmail.com wrote: user (name 'a/b/c) c user (namespace 'a/b/c) a/b Is this intentional? I would have expected a/b/c to be rejected as a symbol name since we use slashes to separate namespace from name and conventionally use .

Re: Can the namespace portion of a symbol contain slashes?

2011-06-23 Thread B Smith-Mannschott
On Thu, Jun 23, 2011 at 18:48, Ken Wesson kwess...@gmail.com wrote: On Thu, Jun 23, 2011 at 11:55 AM, B Smith-Mannschott bsmith.o...@gmail.com wrote: user (name 'a/b/c) c user (namespace 'a/b/c) a/b Is this intentional? I would have expected a/b/c to be rejected as a symbol name since we

Re: Can the namespace portion of a symbol contain slashes?

2011-06-23 Thread Stuart Halloway
My question probably should have been: is it intentional that the Clojure reader accepts symbol names containing more than one slash, producing a namespace portion of the symbol containing slashes in its name? The docs (http://clojure.org/reader) are specific: '/' has special meaning, it

Re: Can the namespace portion of a symbol contain slashes?

2011-06-23 Thread Sean Corfield
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

Re: Can the namespace portion of a symbol contain slashes?

2011-06-23 Thread Ken Wesson
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 /

Re: Can the namespace portion of a symbol contain slashes?

2011-06-23 Thread B Smith-Mannschott
On Thu, Jun 23, 2011 at 19:48, Sean Corfield seancorfi...@gmail.com wrote: 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

Re: Can the namespace portion of a symbol contain slashes?

2011-06-23 Thread Ken Wesson
On Thu, Jun 23, 2011 at 2:47 PM, B Smith-Mannschott bsmith.o...@gmail.com wrote: 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

Re: Can the namespace portion of a symbol contain slashes?

2011-06-23 Thread Stuart Halloway
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

Re: Can the namespace portion of a symbol contain slashes?

2011-06-23 Thread Sean Corfield
On Thu, Jun 23, 2011 at 11:20 AM, 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

Re: Can the namespace portion of a symbol contain slashes?

2011-06-23 Thread Ken Wesson
On Thu, Jun 23, 2011 at 3:29 PM, Sean Corfield seancorfi...@gmail.com wrote: On Thu, Jun 23, 2011 at 11:20 AM, 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

Re: Can the namespace portion of a symbol contain slashes?

2011-06-23 Thread Sean Corfield
On Thu, Jun 23, 2011 at 1:04 PM, Ken Wesson kwess...@gmail.com wrote: Both of them. But the context of that phrase originally was used once in the middle of a symbol, so it was referring to symbols with only one /. Which is the whole point: the docs ascribe meaning to a/b and to / but do not

Re: Can the namespace portion of a symbol contain slashes?

2011-06-23 Thread Ken Wesson
On Thu, Jun 23, 2011 at 7:59 PM, Sean Corfield seancorfi...@gmail.com wrote: On Thu, Jun 23, 2011 at 1:04 PM, Ken Wesson kwess...@gmail.com wrote: Both of them. But the context of that phrase originally was used once in the middle of a symbol, so it was referring to symbols with only one /.