3 ms·
Return only ever moves up the stack one level. That makes it really easy to reason about. This can move up the stack an unlimited amount, and the handler has to
by arcticbull 4y ago
Return only ever moves up the stack one level. That makes it really easy to reason about. This can move up the stack an unlimited amount, and the handler has to be prepared to properly deal with the current state, no matter where it comes from.
- kortilla 4y agoThis is no different than returning an error in go far down. You don’t know how far up it will be passed or handled.
- arcticbull 4y agoYou do. Errors have to be handled or passed up explicitly at each level. Errors are one level at a time, not 'n'.