3 ms·
Yeah, when reading this I was wondering if Rust has sealed traits like Scala, and also structural typing. The extreme degree of shared syntax and shared semant
by mlthoughts2018 6y ago
Yeah, when reading this I was wondering if Rust has sealed traits like Scala, and also structural typing.
The extreme degree of shared syntax and shared semantics with Scala was really surprising to me.
- steveklabnik 6y agoRust 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.