Comment Syntax

Thomas Davie tatd2 at kent.ac.uk
Tue Jan 31 06:31:53 EST 2006


>
>> The fact that -- is a reserved word while {- is not just highlights
>> farther the inconsistency in the language.
>
> Your position implies one of the following:
>
> 1) You think that "{{" ought to be a legal operator.
>
> 2) You think that "-" ought not to be a legal operator.
>
> 3) You think that custom operators are a bad idea. (Hey, Bjarne
> Stroustrup agrees with you!)
>
> Which is it? Personally, I disagree with all three, but then again, I
> don't see any inconsistency here.

4) I think that comments should start consistently with either a) a  
reserved word, or b) something involving a set character (or  
characters) not allowed in operators.  Maybe ever '{{' would be good  
for a single line comment.

Bob


More information about the Haskell-prime mailing list