by vog · 10y ago · 0 comments
You should certainly have a look at "less mainstream" languages whose type systems are more expressive and still simpler to use than those of the "mainstream" languages. For example (list is incomplete, but you'll get the idea):
* Haskell (very popular, hard to reason about performance, though)
* OCaml (possible to reason about performance, except for garbage collection)
* Idris (type system with dependent types!)
* Rust (type system that allows to reason about memory usage, aliasing, etc.)
* Elm (meant to replace JavaScript for user interfaces in the browser)I'm not quite agreed on the effects bit being useful, but it's a good demo of what the type system can do. My main disagreement with the whole approach is that effects don't commute (in general) and so representing effects as such isn't quite valid.
[1] I'm still baffled as to why they named it thusly. I mean, I can guess at motivations, but it really deserves a much catchier name!