[MLton-user] SML newbie mistakes

Vesa Karvonen vesa.karvonen at cs.helsinki.fi
Fri Aug 11 01:51:09 PDT 2006


Quoting Tom 7 <twm at andrew.cmu.edu>:
> We teach undergraduate courses in SML and see students struggle with[...]
[... constructed patterns ...]
[... value restriction ...]
[... equality types ...]
[... stale bindings ...]

Thanks for these!

I just created the page http://mlton.org/StandardMLGotchas . A couple of
items still lack an explanation.  I'll be addressing those when I have the
time, but the page is there for anyone to edit.

> Also, why does the isEven example use words instead of ints?

It is just a cheap trick to make the functions total.

-Vesa Karvonen



More information about the MLton-user mailing list