[Haskell-cafe] Language simplicity

Daniel Fischer daniel.is.fischer at web.de
Thu Jan 14 06:16:15 EST 2010


Am Donnerstag 14 Januar 2010 11:38:57 schrieb Roel van Dijk:
>
> I was a bit surprised that you could use * as an operator since it is
> a punctuation character. Maybe there are some corner cases with
> fullwidth characters or with composition of characters.
>

Thus speaketh the report (http://haskell.org/onlinereport/lexemes.html):

symbol 	 -> 	 ascSymbol | uniSymbol<special | _ | : | " | '>
ascSymbol 	-> 	! | # | $ | % | & | * | + | . | / | < | = | > | ? | @
	| 	\ | ^ | | | - | ~ 
uniSymbol 	 -> 	 any Unicode symbol or punctuation

Punctuation characters are legitimate for operators.



More information about the Haskell-Cafe mailing list