Thanks all!

FWIW, the snake game in Programming Clojure has an example (where refs are 
conditionally updated) which is consistent with the advice given here. 

Two nice things I noticed in that example:

1. The first form inside do is kept on the same line (a small but nice 
improvement reducing the percieved visual weight of the approach).
2. In the snake game, the entire construct is inside a function that explicitly 
returns nil (because there is no intent to return the value that the if might 
evaluate to).

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to