r/rust • u/rustacean1337 • Nov 17 '22
What are Rust’s biggest weaknesses?
What would you say are Rust’s biggest weaknesses right now? And are they things that can be fixed in future versions do you think or is it something that could only be fixed by introducing a breaking change? Let’s say if you could create a Rust 2.0 and therefore not worry about backwards compatibility what would you do different.
220
Upvotes
View all comments
Show parent comment
6
u/zesterer Nov 19 '22
Oh, interesting! So the macro annotations on the function apply just to the return value and not to the calling of the function itself? That's good to know.
It would be nice if this were made clearer syntactically. Given that procedural macros can entirely transform token streams, may I suggest something like this?
Obviously, one complication is that it doesn't mesh too nicely with regular type annotations, and I'm not sure how you'd work around that while being confined to working Rust.