News for hackers. Stuff that matters.
Re:Redox OS Crash Challenge by inferiorhuman on Sunday January 21, 2018 @11:38PM (#16201965)
> > Exceptions don't exist > > They're called panics.

Nope.

https://doc.rust-lang.org/std/panic/fn.catch_unwind.html

Re:Redox OS Crash Challenge by quotemstr on Monday January 22, 2018 @12:06AM (#16202073)
It's non-local control flow with deterministic unwinding and defined stop points. It's an exception system.

Sure, it's not "recommended", but recommendations don't define semantics.

Re:Redox OS Crash Challenge by geofft on Monday January 22, 2018 @10:55AM (#16205284)
I'd say they do—a Rust user will never encounter a panic from a reasonable library that they're expected to catch.

If hypothetical unreasonable libraries are in scope, they can just open /proc/self/mem for writing (in safe Rust!) and violate memory safety, and that's not an argument that Rust isn't memory safe. So why should hypothetical unreasonable libraries be an argument that Rust has exceptions?

Re:Redox OS Crash Challenge by quotemstr on Monday January 22, 2018 @04:59PM (#16208351)
Because the language doesn't define what happens if you write to memory behind the runtime's back. It _does_ define, in detail, what occurs on panic. It's a legal thing to do. That some consider panicing in bad taste or whatever does not change the fact that panic is a supported feature of the language.
Re:Redox OS Crash Challenge by steveklabnik on Tuesday January 23, 2018 @02:19PM (#16216568)
It also defines that it may abort, and so culturally, people use them for only what’s intended, as otherwise, it limits your audience.