4 ms·
Rust does not have sealed traits, though you can sorta contort the privacy system to do similar things if you want. We also do not have structural typing. (Gene
by steveklabnik 6y ago
Rust does not have sealed traits, though you can sorta contort the privacy system to do similar things if you want. We also do not have structural typing. (Generally; tuples are structurally typed but nothing else is)
A lot of Rust’s language people did a lot in Scala. The language’s are pretty different IMHO.
- nobleach 6y agoAs was explained to me, Rust has heritage from OCaml. If one squints, they can even see it still beneath the surface. I hear the original compiler was even written in OCaml.
- steveklabnik 6y agoYes, especially amongst the earliest folks, there was a lot of OCaml, and the original compiler was, yes.