logoalt Hacker News

sunshowers • 01/22/2025 • 0 replies • view on HN

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.