3 ms·
This is why I always document considerations like these with stuff like: “This error case can’t happen because foo” or even better, enforce these things by type
by atoav 7y ago
This is why I always document considerations like these with stuff like: “This error case can’t happen because foo” or even better, enforce these things by type system and let the compiler decide if it really can’t happen once you changed something in the other part of the code.
- shakna 7y agoAda could have enforced those at the type system level, it has bounded types, but those checks were disabled.