Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


It also defines that it may abort, and so culturally, people use them for only what’s intended, as otherwise, it limits your audience.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: