News for hackers. Stuff that matters.
Re:On the uses and misuses of panics in Go by kibwen on Thursday August 09, 2018 @08:50PM (#17729843)
This is not the history of Rust, and it's rather disingenuous of you to pretend that it is.

Rust has featured unwinding in some form or another since its inception.

It has never been the position of the Rust developers that "exceptions suck", only that the failure mode of code that is not exception-safe is especially severe for low-level languages, especially ones that intend to be memory-safe. Rust's aversion to exceptions is not intended as a condemnation of their use in languages that make different tradeoffs.

The only way to "catch" a panic in Rust is via an obscure stdlib API whose purpose is to prevent unwinding from crossing FFI boundaries when Rust code is called from another language (because most host languages consider unwinding across FFI to be undefined behavior). I have read a lot of Rust code; never have I seen anyone attempt to abuse this mechanism as a replacement for general exception handling (which wouldn't even work in general, because Rust code can (and often is) compiled without the ability to unwind at all).

I implore you to actually make an attempt to learn Rust, so that in the future you may be more informed when commenting about it.

There are no comments on this comment yet.