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

This is true, and like I said above, it's not a method I prefer to use, it's just something that is commonly seen in projects that disable exceptions in order to avoid 2 phase initialization.

There are definitely things to be aware of before adopting such a pattern, or when trying to optimize code that uses it.



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

Search: