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

It's not that constructors/destructors can fail, it's about the conscious decision when you make them to. If you choose not to use exceptions at all, you can prevent improper state before object construction, just like you would in C's init_foobar().


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

Search: