▲ 302 ▼ I love Rust (lemmy.blahaj.zone) submitted 2 years ago by rustyfemboy@lemmy.blahaj.zone to c/programmerhumor@lemmy.ml 73 comments fedilink hide all child comments
[+] BaumGeist@lemmy.ml 24 points 2 years ago* (last edited 1 year ago) (2 children) [deleted] permalink fedilink source hideshow 4 child comments replies: [–] Ephera@lemmy.ml 13 points 2 years ago The first iteration of the Rust compiler was written in OCaml... permalink fedilink source parent [–] expr@programming.dev 8 points 2 years ago Don't need the Ord instance for equality, just Eq is sufficient. Ord is for inequalities. The point of the post is that most mainstream languages don't provide a way to automatically derive point-wise equality by value, even though it's pervasively used everywhere. They instead need IDEs to generate the boilerplate rather than the compiler handling it. permalink fedilink source parent
[–] Ephera@lemmy.ml 13 points 2 years ago The first iteration of the Rust compiler was written in OCaml... permalink fedilink source parent
[–] expr@programming.dev 8 points 2 years ago Don't need the Ord instance for equality, just Eq is sufficient. Ord is for inequalities. The point of the post is that most mainstream languages don't provide a way to automatically derive point-wise equality by value, even though it's pervasively used everywhere. They instead need IDEs to generate the boilerplate rather than the compiler handling it. permalink fedilink source parent