Ian Lynagh igloo at
Sun Jul 26 10:44:11 EDT 2009

On Sun, Jul 26, 2009 at 03:24:03PM +0100, Neil Mitchell wrote:
> I haven't seen anyone else claim to use the current more liberal
> syntax for fields, but I know that I do rather extensively. I would
> consider:
> Just A {a = 1}
> To be confusing, but if you simply omit the space:
> Just A{a = 1}
> I now find that perfectly clear and unambiguous.

I did consider allowing that, perhaps by making "Foo{" a single token,
but I couldn't see a clean way to do it.

Personally, I prefer rejecting it anyway.


More information about the Haskell-prime mailing list