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

Can constructors and destructors still go counter to this idea if needed?


I think values should generally only be combined into a structure at the end (no half-formed structures with null data, no calls on methods that work on half-formed structures).

Destructors are more complicated, there's definitely times where you have to violate invariants that otherwise are always the case.




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

Search: