this post was submitted on 19 Jan 2026
-1 points (47.4% liked)
Rust
7685 readers
47 users here now
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Wormhole
Credits
- The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I also come from python, actual meta-programming concepts are usually implemented via meta-classes, which I would describe as more complex than rust macros, in the "it takes longer to fully understand" sense.
You could also generate python code and execute it if you don't mind the obvious security implications, but that's only a possibility thanks to it being an interpreted language, while rust macros can provide validations and readable error messages out of the box.
To your post's point in general:
None | T) which require hand-written handling, instead of rust'sOption<T>which has convenience methods and syntax support (... = maybe?).I have more points if you'd like to understand my position, and am willing to explain if you need.