Moderator note: split from Negative views on Rust ( not mine! )
One big thing bugs me about rust, but I can't really think of a constructive way to discuss it. My problem is panics: they should not be baked so deeply into the language.
First of all, unwindable panics are exceptions, with all the costs that that entails. I strongly believe that the ability to catch any panic from any context was a design mistake. Look at how many aspects of the language are affected by panic handling; for definiteness I'll just mention mutex poisoning (which can only happen as a result of an unwound panic), but I'm constantly seeing apparently simple design proposals foundering on the need for panic handling.
I've no good ideas how this could have been done better. I wonder if an
UnwindOnPanic trait might help: only functions with this trait can be unwound. Working out the details would be tricky ... and kind of futile this late in the day, I suspect.
Similarly, there's no good way to write panic free rust. In a similar vein perhaps there should be a
Panic trait, only functions with this trait can generate panics, and most functions don't implement this.