Unfortunately, the reader does not actually follow this spec, e.g. it will 
happily accept :div#id.cla$$ as a valid keyword.  Some web programming 
clojure[script] libraries use this pseudo-CSS syntax in keywords, so if the 
reader was changed to strictly follow these rules, a lot of web code would 
probably break. 

On Tuesday, March 6, 2012 12:13:20 PM UTC-8, stuart....@gmail.com wrote:
>
> I don't think you're supposed to use spaces in keywords.
>
>
>
> Using spaces in keywords is completely valid, as is using spaces in
> symbols. 
>
>
> Legal characters in keywords and symbols are documented at  
> http://clojure.org/reader :
>  
> "Symbols begin with a non-numeric character and can contain alphanumeric 
> characters and *, +, !, -, _, and ? ... Keywords are like symbols ..."
>
> Stu
>
>
>
>
On Tuesday, March 6, 2012 12:13:20 PM UTC-8, stuart....@gmail.com wrote:
>
> I don't think you're supposed to use spaces in keywords.
>
>
>
> Using spaces in keywords is completely valid, as is using spaces in
> symbols. 
>
>
> Legal characters in keywords and symbols are documented at  
> http://clojure.org/reader :
>  
> "Symbols begin with a non-numeric character and can contain alphanumeric 
> characters and *, +, !, -, _, and ? ... Keywords are like symbols ..."
>
> Stu
>
>
>
>

-- 
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

Reply via email to