3 ms·
But isn’t it only to the immediate caller using the explicitly declared error, not all the way up the stack? That’s very different behaviour and along with usi
by grey-area 8y ago
But isn’t it only to the immediate caller using the explicitly declared error, not all the way up the stack?
That’s very different behaviour and along with using the error interface avoids the main objections to exceptions ( unexpected throws handled far from the error location, unexpected errr types).
This is just a small change to make it easier to annotate and easier to return without comment.
- spullara 8y agoAssuming the caller uses check as well it will continue on. Seems the same as checked exceptions to me.
- grey-area 8y agoThat’s an invalid assumption, as most functions will not use check (looking at my code there are just a few places I’d use it). It’s an addition to current error handling, not a replacement.