[Haskell-cafe] Comment Syntax

Albert Y. C. Lai trebla at vex.net
Mon Jun 6 19:51:44 CEST 2011


On 11-06-06 01:34 PM, Daniel Fischer wrote:
> On Montag, 6. Juni 2011, 19:08, Albert Y. C. Lai wrote:
>> Recall that the problem is not with isolated characters, but whole
>> strings.
>>
>> "-- a" is a comment, "--a" is a comment, but "---a" is not.
>
> It is. Report, section 2.3:

Sorry. Then "--|" is not a comment. In C++, "//|" is a comment (compare 
with Haskell's "--|"!).



More information about the Haskell-Cafe mailing list