6 ms·
In general, I think this is why Rust uses `panic` since the name is way... angrier. I like it. I wish that the concept of exceptions was closer to Panic becaus
by irjustin 7y ago
In general, I think this is why Rust uses `panic` since the name is way... angrier.
I like it. I wish that the concept of exceptions was closer to Panic because then we wouldn't be doing nearly as much flow control.
In the Rails world (where I live) looking top down, exceptions are handled via flow control or 500 pages. Anything that doesn't result in a 500 is effectively flow control.
While I agree with Rust's semantics, it generally isn't that bad to work around and knowing which is what.