chlorinejs / chlorine

Main library for Chlorine compiler (a subset of Clojure to javascript)
https://github.com/chlorinejs/lein-cl2c
45 stars 4 forks source link

Handling of empty strings and zeros #55

Closed myguidingstar-zz closed 11 years ago

myguidingstar-zz commented 11 years ago

rewrite if macro on top of if* not, and, or etc need rewriting

myguidingstar-zz commented 11 years ago

ChlorineJS currently treats zeros and "" as boolean false. If you need Clojure's behavior which means true instead, use boolean function in ChlorineJS' core library

myguidingstar-zz commented 11 years ago

ChlorineJS tends to be lightweight. Such handling maybe overkill and reduce performance