2 ms·
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 leg
by quotemstr 9y ago
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.
- steveklabnik 9y agoIt also defines that it may abort, and so culturally, people use them for only what’s intended, as otherwise, it limits your audience.