this post was submitted on 11 Nov 2025
9 points (100.0% liked)
Rust
7648 readers
48 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
Really not a fan of this approach. Makes the order of operations extremely weird. I would much prefer having
superblocks that are explicitly inserted in the above scope. I.e. this:Would desugar to:
Only problem is if the clone is inside another block... but perhaps you could do
super super { ... }? But that sort of gets crazy and makes it very hard to read again.