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.

Andy

On May 15, 2012, at 12:09 PM, Hubert Iwaniuk wrote:

> I tried using if-let with multiple binding in past as well.
> Following least surprise principle, I would like to see support for multiple 
> bindings.
> 
> Cheers,
> Hubert.
>>      Vinzent May 15, 2012 5:47 PM
>> Or maybe if-let and when-let should support multiple bindings, like the doc 
>> states.

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

<<inline: compose-unknown-contact.jpg>>

Reply via email to