[Haskell-cafe] Call to arms: lambda-case is stuck and needs your help
Wolfgang Jeltsch
g9ks157k at acme.softbase.org
Fri Jul 13 14:21:25 CEST 2012
Am Donnerstag, den 12.07.2012, 13:38 -0400 schrieb Cale Gibbard:
> Personally I don't see why everyone appears to prefer the syntax with
> \ in it over just the obvious case section syntax which was originally
> proposed.
>
> case of { ... }
>
> looks much better to me than
>
> \case of { ... }
>
> and the former makes sense to me as a simple extension of operator
> sections to another part of the syntax.
>
> Does anyone else agree?
I’m strongly opposed to the
case of { ... }
syntax, because there seems to be no natural arrow expression analog of
it.
A notation that starts with \ (like “\case”) can be carried over to
arrow expressions by replacing the \ with proc (like in “proc case”).
Best wishes,
Wolfgang
More information about the Glasgow-haskell-users
mailing list