9
Just call clone (or alias) · baby steps
(smallcultfollowing.com)
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Credits
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.I like this solution more too, what about something like?
code examples
Which desugars to
Then have like
Which desugars to
And finally, the harder to read
Which desugars to
I like the idea of using block labels, but I don't like the ^ symbol. There's already precedent for using keywords before blocks, like with async. There's also already super let in nightly I believe.