>> 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.

Just to be explicit, I think Just A{...} is clear for me, but really
wouldn't want the parser to depend on the presence or absence of
spaces - that's just not very Haskell like.

Thanks, Neil
_______________________________________________
Haskell-prime mailing list
Haskell-prime@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-prime

Reply via email to