Re: Keyword constraints not enforced

2008-11-25 Thread James Reeves
On Nov 24, 2:26 pm, Rich Hickey <[EMAIL PROTECTED]> wrote: > I think you've both misread "they cannot name classes" to be - "They > cannot contain class names". > > The symbol String can name a class but the keyword :String can't, > that's all I meant there. Ah, I get it now. > As far as '.', th

Re: Keyword constraints not enforced

2008-11-25 Thread kwatford
Somewhat related, I noticed that the keyword function doesn't seem to make any attempt at ensuring keywords are even readable. user=> (keyword "(foo)") :(foo) Is this intended? On Nov 24, 9:26 am, Rich Hickey <[EMAIL PROTECTED]> wrote: > On Nov 23, 9:09 am, James Reeves <[EMAIL PROTECTED]> wrot

Re: Keyword constraints not enforced

2008-11-24 Thread Rich Hickey
On Nov 23, 9:09 am, James Reeves <[EMAIL PROTECTED]> wrote: > On Nov 23, 11:38 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: > > > Hi, > > > According tohttp://clojure.org/reader: > > > > Keywords are like symbols, except: > > > > o They can and must begin with a colon, e.g. :fre

Re: Keyword constraints not enforced

2008-11-23 Thread James Reeves
On Nov 23, 11:38 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > According tohttp://clojure.org/reader: > > > Keywords are like symbols, except: > > >          o They can and must begin with a colon, e.g. :fred. > >          o They cannot contain '.' or name classes. > > Shouldn't t

[Bug?] Keyword constraints not enforced

2008-11-23 Thread [EMAIL PROTECTED]
Hi, According to http://clojure.org/reader: > Keywords are like symbols, except: > > o They can and must begin with a colon, e.g. :fred. > o They cannot contain '.' or name classes. This is what I get using the latest SVN revision (1211): user=> (keyword? :String) true user=>