Personally, I would intuitively assume that none of the bindings from
if-let would be available in the else branch.

On 16 May 2012 14:36, Moritz Ulrich <ulrich.mor...@googlemail.com> wrote:

> On Wed, May 16, 2012 at 3:16 PM, Aaron Cohen <aa...@assonance.org> wrote:
> > What should happen on the else branch of the if-let; which bindings are
> in
> > scope and what would be their values?
>
> This is kind of tricky. My opinion tends to "all bindings", but then
> it's difficult to handle lazy evaluation like in (or
> (cheap-computation) (long-computation)).
> One solution for this would be evaluating all arguments 'til the first
> fails, then nil-ing the rest. The problem with this is, that it throws
> away values which could be useful.
>
> --
> Moritz Ulrich
>
> --
> 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

Reply via email to