2 ms·
The point about all these languages that came after C that have exhaustive pattern matching on a Result type is that there are better ways of doing things. Why
by satvikpendem 4y ago
The point about all these languages that came after C that have exhaustive pattern matching on a Result type is that there are better ways of doing things. Why have the user have to handle cases like this by remembering to put in an `if err != nil` when the computer can literally compute where it's not being used and yell at you or even add it for you?
Even in C it was not "just fine," it caused all sorts of bugs. But the bigger issue is that PL theory has improved since then, why be constrained to the same patterns as before?