[Haskell-cafe] Comment Syntax
nbowler at elliptictech.com
Mon Jun 6 19:44:37 CEST 2011
On 2011-06-06 13:39 -0400, Nick Bowler wrote:
> On 2011-06-06 13:08 -0400, Albert Y. C. Lai wrote:
> > Recall that the problem is not with isolated characters, but whole strings.
> > in LaTeX, "%%@#$&^*" is a comment.
> This example probably does not help your position.
> Since (La)TeX allows the comment character to be changed at any time,
> the above is not necessarily a comment. Furthermore, even with the
> default character classifications, \% does not introduce a comment.
> \% not introducing a comment in (La)TeX doesn't seem a whole lot
> different from --- not introducing a comment in Haskell.
And as was pointed out elsethread, --- /does/ in fact introduce a
comment in Haskell. So the above should read:
\% ... doesn't seem a whole lot different from --| ...
Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/)
More information about the Haskell-Cafe