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

I think in this case, unlike say a network server, failures are not the end of the world. Those particular checks are quite useful though when it comes to debugging as working out where that pointer got shafted isn't all that easy once you've stepped past it so failing early is a good plan.

Either that or it's operating how I do which is putting asserts everywhere and when it's stable, removing them. I do this with macros though.



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

Search: