Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.



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.


As 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.


Yes, especially amongst the earliest folks, there was a lot of OCaml, and the original compiler was, yes.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: