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

It should be. If you aren’t treating it exactly the same as panic and expect, that’s what I’m calling the “blind spot”. And why should you have to make up a message every time when the backtrace is going to tell you what was wrong?




> And why should you have to make up a message every time when the backtrace is going to tell you what was wrong?

The message isn't really here to be displayed during a crash (since the crash should never happen in the first place), it's here to communicate the invariant in the code, to the developer reading and modifying it later on.




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

Search: