[MLton-user] SML newbie mistakes

Andreas Rossberg AndreasRossberg at web.de
Mon Aug 14 11:03:01 PDT 2006


From: "Stephen Weeks" <sweeks at sweeks.com>
>
> > > 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.
>
> Moscow ML 2.01 (January 2004) also rejects it.  Is there some later
> version I should be using?

No, you are right, I did not recall that correctly.




More information about the MLton-user mailing list