[Haskell-cafe] Lambda-case / lambda-if

Felipe Lessa felipe.lessa at gmail.com
Sat Oct 2 15:32:23 EDT 2010


On Sat, Oct 2, 2010 at 4:13 PM, Christopher Done
<chrisdone at googlemail.com> wrote:
> There's nothing more annoying than having to introduce intermediate
> bindings when you're going to immediate pattern match against it
> immediately and never use it again. It's both annoying to have to
> think of a variable name that makes sense and is not in scope or will
> be in scope, and annoying to type it out, and it's just ugly. This is
> *not* a special-case, it happens all the time and it's one of the few
> things in the syntax I wish could be updated.
>
> I vote yes, yes, and double yes!

I wholly agree with Christopher and for the same reason, +1.

Thanks,

-- 
Felipe.


More information about the Haskell-Cafe mailing list