4 ms·
Rust is rather more like "Haskell-ish C++". (Typeclasses were popularized by Haskell and are not available in SML or OCaml.) While the C++ heritage is obviously
by floatboth 6y ago
Rust is rather more like "Haskell-ish C++". (Typeclasses were popularized by Haskell and are not available in SML or OCaml.) While the C++ heritage is obviously the memory management – no runtime, heavy use of scope based deterministic destruction ("RAII"). Also the compile-time metaprogramming that gets monomorphized. (All those template/generic instantiations that can bloat the binaries if overused :D)
- jgilias 6y agoI've been bashed before for saying something along the lines of "Haskell-ish C++". Their fair point being that the only Haskell influence is the typeclasses, and all other ML-influences are just ML-influences that are not unique to Haskell. Fair enough :)
- Zababa 6y agoFor reference, here's the "influences" page of the Rust reference: https://doc.rust-lang.org/reference/influences.html https://doc.rust-lang.org/reference/influences.html SML, OCaml, C++ and Haskell are all mentionned.