On the left: Someone browsing through a huge book captioned "Implementing equality in other languages". On the right: A tiny book labelled with the Rust code `#[derive(PartialEq, Eq)]` captioned "Implementing Eq in Rust".
you are viewing a single comment's thread
view the rest of the comments
[–] 47 points 2 years ago (1 child)

It's because people put in the hard work of writing amazing macros instead of baking code reuse into the type system itself 😁 I'm a rust noob and I love the derive macro.

  • source
  • parent
  • hideshow 1 child comment