character literal question

Neil Mitchell ndmitchell at
Fri Dec 1 17:56:49 EST 2006


> Is there a reason why we have to escape the character ' (apostrophe)
> when used in a character literal?  For example, we have to write '\''
> instead of '''.

This is what Ada does. I think that's a reason enough to keep things
the way they are.

It does actually make syntax hilighting more complex, and introduces
another special case. It's also no longer "the same" as strings, since
""" doesn't mean "\"".



More information about the Haskell-prime mailing list