▲ 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
[+] akkajdh999@programming.dev 21 points 2 years ago* (last edited 2 years ago) (1 child) [deleted] permalink fedilink source hideshow 2 child comments replies: [–] Ephera@lemmy.ml 4 points 2 years ago Yeah, I came to Rust from Scala and Kotlin, where equality is default-implemented (for case class and data class respectively, which is basically all we ever used), so this meme surprised me a bit. I do actually like that you can decide a type cannot be compared, because sometimes it really just doesn't make sense. How would you compare two HTTP clients, for example? But yeah, it certainly is a choice one can disagree with. permalink fedilink source parent
[–] Ephera@lemmy.ml 4 points 2 years ago Yeah, I came to Rust from Scala and Kotlin, where equality is default-implemented (for case class and data class respectively, which is basically all we ever used), so this meme surprised me a bit. I do actually like that you can decide a type cannot be compared, because sometimes it really just doesn't make sense. How would you compare two HTTP clients, for example? But yeah, it certainly is a choice one can disagree with. permalink fedilink source parent