Came across this issue today when attempting to read a keyword that starts with 
a number.

> (read-string "{:42 \"the answer\"}")
"Cannot read property '0' of null"

The source of the problem stems from the read-keyword function that uses a 
symbol-pattern[1]:

> (re-matches* symbol-pattern "42")
nil

Since Clojurescript does support these keywords the reader should too, correct?

[1] "[:]?([^0-9/].*/)?([^0-9/][^/]*)"

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to