On May 15, 2012, at 3:15 PM, Andy Fingerhut wrote:

> If if-let/when-let had multiple bindings, how would you propose to define the 
> condition of whether to do the "then" branch?
> 
> As the logical AND of all of the multiple forms?  The OR?  Only use the first 
> expression?  Only the last?
> 
> I don't see that any of those is any more clear or "least surprising" than 
> any of the others.  Permitting only one makes that part of the behavior 
> clear, at least.

AND is the obvious choice, IMO. People will probably still have to look up what 
happens with multiple bindings from time to time, but that doesn't seem worse 
than having to look up whether if-let and when-let even support multiple 
bindings.

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