3 ms·
Because it doesn’t skip the call chain - each function must explicitly handle the error or pass it on. In practice usually errors are handled one or two levels
by grey-area 7y ago
Because it doesn’t skip the call chain - each function must explicitly handle the error or pass it on. In practice usually errors are handled one or two levels up, not with some global error handler as people do with exceptions. Also the error is in the function signature, unlike exceptions.
Also, you don’t use try everywhere, that’s the point. They could do with some better examples.
- coldtea 7y ago>Because it doesn’t skip the call chain - each function must explicitly handle the error or pass it on So like, checked exceptions? >Also the error is in the function signature, unlike exceptions. So like, checked exceptions?
- grey-area 7y agoSure, there are different ways of doing this. But the OP didn't say 'checked exceptions'.
- deleted 7y ago[deleted]