[MLton-user] SML newbie mistakes

Vesa Karvonen vesa.karvonen at cs.helsinki.fi
Mon Aug 14 03:20:17 PDT 2006


Quoting Andreas Rossberg <rossberg at ps.uni-sb.de>:
> Vesa Karvonen wrote:
> > === (op *) ===
> > 
> > It is common mistake to parenthesize {{{op *}}} as {{{(op *)}}}.
> > Unfortunately, {{{*)}}} is considered a comment terminator and will cause
> > a syntax error.
> 
> Just a quick note: with SML'97 this should no longer be an error. It's a 
> bug of SML/NJ to reject it, all other compilers happily accept it 
> without extra spacing.

Thanks, I changed the explanation on the http://mlton.org/StandardMLGotchas
page.

-Vesa Karvonen



More information about the MLton-user mailing list