|
|
|
|
|
by cwzwarich
3290 days ago
|
|
> If exceptions are so great, why Rust and Swift aren't using them? Technically speaking, Rust does have exceptions with its unwinding feature. The panic! macro throws an exception, and catch_panic allows you to catch it. It is implemented exactly the same way as C++ exceptions, with the accompanying code bloat and performance pessimization, and you have to think about exception safety exactly the same way when writing unsafe code. |
|