[Haskell-cafe] Comment Syntax

Andrew Coppin andrewcoppin at btinternet.com
Fri Jun 3 19:12:04 CEST 2011

On 03/06/2011 05:02 PM, Albert Y. C. Lai wrote:
> I propose that only {- -} is comment; that is, -- is an operator token
> and not a marker of comments.

I'm curious to know why anybody thought that "--" was a good comment 
marker in the first place. (I'm curious because Haskell isn't the only 
language to have made this strange choice.)

I once tried defining a "++" operator and then when I went to define a 
matching "--" operator...

More information about the Haskell-Cafe mailing list