On Jan 15, 2:02 pm, Simon Brooke <still...@googlemail.com> wrote:
> There's an old programmers hack that works in many languages of
> abusing the logical or operator to try a sequence of operations until
> one returns something useful. It appears that this works in Clojure,
> too.

Certainly, this is a very common idiom in Common Lisp and other older
dialects.  I guess there are a few people who don't like it, but a lot
of us do it routinely.  You'll even see stuff like

  (or (try-to-construct-a-foo)
       (error "Couldn't construct a foo"))

-- Scott
-- 
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