3 ms·
that was my first thought too. ocaml would have addressed all the complaints he had with rust: * far more concise * familiar exception handling mechanism
by zem 10y ago
that was my first thought too. ocaml would have addressed all the complaints he had with rust:
* far more concise
* familiar exception handling mechanism
* classes and inheritance for the few places he needed them
* mutability
* bytestrings
missing are
* proper support for enum subset types (i've felt the need for those too)
* exhaustiveness checking for uint8
* bit length (seems like a very niche thing; i'm sure someone's implemented it in a library somewhere)
rust makes a compelling competitor to d as an upgrade path from c++, but if you're porting code from a high-level, dynamic language like python, ocaml is almost always going to be a better experience.