2009/12/20 ataggart <[email protected]>

>
>
> On Dec 19, 8:02 pm, Mike K <[email protected]> wrote:
> > [:foo] evaluates to true by virtue of being a keyword.
>
> To be precise, it evaluates to true by virtue of it not being nil nor
> boolean false; being a keyword doesn't really have anything to do with
> it.
>

To be even more precise, it evaluates to :else. And since :else is neither
the value false neither the value nil, it is considered "logically true".


>
> user=> (cond nil :n false :f (Object.) :t)
> :t
>
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to [email protected]
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> [email protected]<clojure%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to