On Wed, Aug 18, 2010 at 10:28 AM, Shantanu Kumar
<kumar.shant...@gmail.com> wrote:
> Would suggest to consider this:
>
> (let [ x (true? (new java.lang.Boolean false)) ] (if x "trouble"
> "ok"))

Ah, but that wouldn't work for a new Boolean set to true:

(let [ x (true? (new java.lang.Boolean true)) ] (if x "ok" "trouble"))

Expect "ok"? Nope, you'll get "trouble".
-- 
Sean A Corfield -- (904) 302-SEAN
Railo Technologies, Inc. -- http://getrailo.com/
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

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

Reply via email to