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
3
u/rosefromthedead_ Nov 18 '22
I remember a similar comment on my original announcement post, but I never got my head around what it means. In effing-mad, functions marked with
#[effectful]return a generator that can be driven with effect handlers to completion. Similarly, async fns return a future that can be driven by an executor to completion. What's the difference? They're both a regularfn(stuff) -> things, if that's what you mean.Perhaps the documentation is misleading? It seems to me that effing-mad is already how you want it to be.
In general, I want to understand these things! My goal is to design the ideal API so that we can say with certainty whether such a system can cleanly bring benefits to Rust. So, if there are any more ideas out there of what people want from it that hasn't been considered yet, I'm all ears :)