Re:Surface Tension of Software
by ttoinou on Sunday December 14, 2025 @05:37AM
(#46262137)
How about you never write the wrong state in the first place ? Then you have nothing to take care of
[ Parent
| on HN ]
> How about you never write the wrong state in the first place ?
Indeed, and tagged unions (enums in Rust) explicitly allow you to avoid creating invalid state.