|
|
|
|
|
by ribit
692 days ago
|
|
Is this really a new approach? On a cursory look this seems like implicit error propagation with checked exceptions. I am
Also curious about authors presentation of the topic. To me, an important feature of error handling design is whether fallible contexts are marked (e.g., with try statement) or not. |
|
The other aspect is ergonomics. A major problem I have with try..catch blocks that the article doesn't touch on is that they created nested blocks, with their own scopes. This either results in nesting hell, or the variables that are assigned inside the try block must also be defined outside the try block. This makes the code simply unpleasant to write.