4 ms·
Coming from outside, the take on macros resonates. Working with modern 'Rust' The Language is rather nice. But when one of my first main projects was to add sup
by thadt 3y ago
Coming from outside, the take on macros resonates. Working with modern 'Rust' The Language is rather nice. But when one of my first main projects was to add support for a serialization format with Serde, running into macros feels like running into a wall. It's a whole next level of complexity and poor tooling support (at least at the time).
Granted, I've had similar feelings about C++'s template shenanigans, so take it with a grain of salt. Zig's comptime feels like a breath of fresh air in comparison.
- insanitybit 3y agoAdding serialization with serde is a matter of adding `#[derive(Serialize, Deserialize)]`. I guess that's magical in a way, but does that matter?
- estebank 3y agoGP is talking about adding support for a specific format to Serde, something equivalent to serde_json, not serializing an ADT they have. I've also found it to be difficult.
- insanitybit 3y agoOhhhh, I see. Yes, I think comptime would be a big win there.