Does the principle of least surprise suggest that multiple bindings be
combined with AND or OR?

--Aaron

On Tue, May 15, 2012 at 3:09 PM, Hubert Iwaniuk <neo...@kungfoo.pl> 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 <ru.vinz...@gmail.com>
>  May 15, 2012 5:47 PM
> Or maybe if-let and when-let should support multiple bindings, like the
> doc states.
>
> воскресенье, 13 мая 2012 г., 4:55:40 UTC+6 пользователь Borkdude написал:
> --
> 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
>   Borkdude <michielbork...@gmail.com>
>  May 13, 2012 12:55 AM
> The docstring of if-let is as follows:
>
> bindings => binding-form test
>
> If test is true, evaluates then with binding-form bound to the value of
> test, if not, yields else
>
> I think it should be mentioned in the docs that if-let and when-let
> support only *one binding*, not multiple bindings (like for example
> https://www.refheap.com/paste/2700).
>
> Kind regards,
>
> Michiel
> --
> 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 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 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

<<compose-unknown-contact.jpg>>

<<postbox-contact.jpg>>

Reply via email to