3 ms·
I learned a lot of SML in college, and it is really a great language. In my opinion it has the best syntax and REPL of any language I've used. But Haskell has
by ankrgyl 15y ago
I learned a lot of SML in college, and it is really a great language. In my opinion it has the best syntax and REPL of any language I've used.
But Haskell has a much better chance of becoming main stream. The type classes allow things like drop-in, easy-to-use hash maps and a simple, type-safe print statement (SML's requires explicit string conversions). Furthermore, GHC consistently pushes modern features; my current favorites are the extremely performant userspace threads (managed by epoll). From what I can tell, the SML folks are more focused on PL research projects than trying to implement a standard library, which is completely fine.
If everything goes well and we as a community build intuitions for strong, static typing, one of these good languages (IMO probably Haskell) could end up as the next Python.
BTW, if you're looking for resources on learning SML, I'd look at Bob Harper's books (http://www.cs.cmu.edu/~rwh/ http://www.cs.cmu.edu/~rwh/)
- evangineer 15y agoThanks, I had already downloaded the latest version of Harper's Programming in Standard ML. I think you're right about the SML folks' focus on PL research.