Qualified identifiers opinion

Christian Maeder Christian.Maeder at dfki.de
Mon Aug 20 04:26:58 EDT 2007

Stefan O'Rear wrote:
> What's wrong with the status quo?  Our current lexical rules *seem*
> complicated to newbies, but just like everything else in Haskell it
> carries a deep simplicity; having only one rule (maximal-munch) gives a
> certain elegance that the proposals all lack.

I'm quite in favour of "maximal munch", but after munching "Foo." or
"Foo.where" saying:

  Sorry I've munched too much, I meant to munch only "Foo" and "."
(because Foo is a data constructor) or "Foo.wher" and "e" (because
"where" is a keyword)

carries "simplicity", to "deep" for me.

Cheers Christian

More information about the Glasgow-haskell-users mailing list