Planck (1.6) gives me:
cljs.user=> (if "" :Truthy :Falsey)
:Falsey
cljs.user=> (if 0 :Truthy :Falsey)
:Falsey
This is wrong, according to "Clojurescript Up and Running" and
https://github.com/swannodette/lt-cljs-tutorial :
;; 0 is not a false-y value.
(if 0
"Zero is not false-y"
"Yuck")
;; Nor is the empty string.
(if ""
"An empty string is not false-y"
"Yuck")
Same results in 1.5 so not a version issue.
gvim
--
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.