πŸ’¬ Reply by Ashelyn

2024-11-15 πŸ”„ programmerhumor ┃ RE: rustyfemboy

Is that because it’s that simple, or just that the boilerplate is pre-written in the standard library (or whatever it’s called in rust)?

Ashelyn

rustyfemboy

πŸ”„ programmerhumor

πŸ’¬ Replies

2024-11-15 rustyfemboy

Yes, it is that simple. In Rust if you have a structure Person and you want to allow testing equality between instances, you just add that bit of code before the struct definition as […]

2024-11-15 Dhs92 ┃ 1πŸ’¬

Derive macros are a godsend. There’s macros to automatically implement serialization as well. Basically a Trait that can automatically be implemented when derived

2024-11-15 mvirts ┃ 1πŸ’¬

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.

────

View parent post

View thread

────

πŸ“‘ Local feed

πŸ•οΈ Communities

πŸ”₯ Hashtags

πŸ”Ž Search posts

πŸ”‘ Sign in

πŸ“Š Status

πŸ›Ÿ Help