Hi,
I have a problem with read-string in Clojurescript. Reading keywords
starting with a number will fail:
(cljs.reader/read-string ":123")
(cljs.reader/read-string ":1abc")
Both will return following error: "Uncaught TypeError: Cannot read property
'0' of null"
I think this is a bug. Any sug
Thanks David.
I added to my HTML document (this is just a static
test project) and it fixed the problem.
Regards,
Stuart
On 2 September 2011 18:36, David Powell wrote:
> Clojurescript represents symbols and keywords as strings with a one
> character unicode prefix (as an implementation detail
Clojurescript represents symbols and keywords as strings with a one
character unicode prefix (as an implementation detail).
But, by default it outputs javascript as utf-8, and unless you are serving
javascript from a server and have setup the headers accordingly, this will
be misinterpreted by the
Please excuse the self-reply;
Looking at the compiled version of (keyword?), I can see a line that appears
to compare the first character of the keyword string against a
multi-character string constant:
cljs.core.keyword_QMARK_ = (function keyword_QMARK_(x){
var and__3574__auto2211 = goog.isS
Hi,
When I compile the following to JavaScript, I expected it to output
"foo" in the console log:
(.log js/console (name :foo))
However, it outputs "ï· 'foo".
Is that right?
Regards,
Stuart
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To pos