Re:Programming Paradigms for Dummies: What Every Programmer ...
by Jtsummers on Monday November 05, 2018 @12:20PM
(#18384029)
You can still get something like that using exceptions, it depends on where the exceptions are caught. If you have a function which has 3 calls:
If the exceptions can occur in the calls assigning to a, b, or c and are handled locally (here, in f) then you can construct that first case. It's only if you throw the exception up one level higher that you end up in the latter case. As written, it is more like your latter example. But with a modication:
You can get the former case.
[ Parent
| on HN ]
There are no comments on this comment yet.