Proposal: require spaces around the dot operator

Roman Leshchinskiy rl at
Sun Feb 12 02:39:21 CET 2012

On 12/02/2012, at 01:29, Nate Soares wrote:

> If -> was introduced for accessing fields, we'd have to discuss whether it should have spaces around it. I'd lean towards requiring that it have no spaces when used for field access, for symmetry with "." when used for module access.

I'm not spaces matter in this case, -> is a reserved token so we would just have expressions of the form expr -> field with no special lexical rules. BTW, if -> doesn't work for some reason then there is also => which AFAIK isn't used in expressions at all currently.


More information about the Haskell-prime mailing list