3 ms·
Getting it right once, in an example, where everything is visible within ten lines? Not complicated at all. Getting it right every time, across thousands of l
by MereInterest 4y ago
Getting it right once, in an example, where everything is visible within ten lines? Not complicated at all.
Getting it right every time, across thousands of lines of code, interspersed with other functionality? Very complicated.
If you design a system that requires multiple locations to be in sync with each other for correctness, that's a system that will quickly become incorrect.
- pphysch 4y agoIf you're the 1% building wrappers around syscalls and IO, you're gonna have to think carefully about all these failure conditions. Meanwhile, the other 99% of IO-invoking code gets to benefit from the syntactic sugar of `defer`.