2 ms·
I'm 80% sure that the OP's problem with panicking isn't to do with the unwind/abort choice. If I had to guess, their actual complaint is about the fact that the
by kibwen 6y ago
I'm 80% sure that the OP's problem with panicking isn't to do with the unwind/abort choice. If I had to guess, their actual complaint is about the fact that the index operator panics on out-of-bounds accesses. I say this with confidence because, other than that, the bottom type is extremely useful, partial functions are often extremely useful (sometimes you do just want to shut up the type system), unwinding needs to exist in order to properly support being a guest in a host process, and unwinding-as-default is the correct default for encouraging people to think about unwinding inside of unsafe code blocks.