4 ms·
The error/maybe/whatever monad with pattern matching is not only the most elegant solution, it is the most robust solution. No other solution allows the compil
by crimsonalucard 7y ago
The error/maybe/whatever monad with pattern matching is not only the most elegant solution, it is the most robust solution.
No other solution allows the compiler to catch a runtime error at compile time.
- notus 7y agoYeah I agree. Surprises me more languages don't adopt or popularize this approach. I guess people like having runtime errors.
- marcosdumay 7y agoPeople mostly do not mind runtime errors, downtime, data corruption or loss. It's mindblowing, but you can watch the reaction of most people, there is almost never an step of "let's find what the problem actually was and make sure it doesn't repeat later".
- frou_dh 7y agoSame deal with people parroting market-segmentation blather about not """needing""" ECC RAM.