On Dec 13, 9:27 am, wubbie <[email protected]> wrote:
>
> My question is what's the usage for ture?. I don't see a meaningful
> example on usage of true?
>
At the very least, when you have to interface with Java? Also, your
code might use true as a special value -- say as values inside a key
to indicate you don't care what the real value is. If you use 'nil'
instead of true, you have to use contains? to separate the nil case
and the case where the key is not found. With true you can just say
(let [v (m key)]
(if v
(if (true? v) ...
...)))
--
Michel
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---