Hi Everyone!

I recently come up against an unexpected behavior in my program written in 
cljs (version 1.7.145)
and I verified that the same problem happen with lumo.

cljs.user=> (> 1 nil)
true
cljs.user=> (apply max [])
nil
cljs.user=> (> 1 (apply max []))
false

This seems to be a problem of Referential Opacity and I think is due to the 
fact that ">" is a macro.
But I'm not sure... Can someone give me a detailed explanation of the 
reason? :)

Thanks! :)

-- 
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 https://groups.google.com/group/clojurescript.

Reply via email to