Hi to everybody!

At

https://github.com/stepugnetti/cljs-issue

you can find some code producing a strange behavior of the builder. Running 
`lein cljsbuild once bare' compiles the following code:

(defn issue []
  (let [rs (read-string "1")]
    (< rs 1)))

and results in the following warning message:

WARNING: cljs.core/<, all arguments must be numbers, got [#{nil boolean any 
number cljs.core/Symbol clj-nil} number] instead. at line 6 
src/bare/cljs_issue/bare.cljs

With `lein cljsbuild once wrapped' the code compiled is just slightly different 
(the result of read-string is wrapped in a call to the identity function):

(defn issue []
  (let [rs (identity (read-string "1"))]
    (< rs 1)))

and the warning message disappears.

What's up?

Stefano

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