On Fri, 27 Jul 2012, Christian Essl wrote:
> Hi Madis,
>
> Thanks for this addition and your ongoing work.
>
> I was wondering whether generally lamba could expose its argument so
> that (\...) is syntactic sugar for do x: ... done, where 'x' is the
> binding defined by the language specification (could be of course
> something else)
>
> ie
>
> \if x then 1 else 0 fi
>
> is same as
>
> do x: if x then 1 else 0 fi done
I'm not a big fan of magic bindings popping out of nowhere. Binding to _
would be an option, like \if _ then 1 else 0 fi, but there is already the
(_ x = if x then 1 else 0 fi) variant of lambda. I'm not sure that
extending \ this way would be really needed.