Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Scala seems to do all these. Unfortunately it also has a bit of a messy OO system that can make inference more painful than the aforementioned options, but life's about trade offs I suppose...


Scala offers awkward encodings for some of the things you can do with ML modules, but sometimes it falls short. For instance, you can't emulate datatype declarations inside signatures (as opposed to inside modules themselves). Or SML-style datatype replication. Or OCaml-style applicative functors.

Lack of global type inference is far from the only problem with Scala.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: