|
|
|
|
|
by sensitive-ears
1947 days ago
|
|
The "?" operator doesn't turn them into exceptions, it's just a "return-early-if-error" shortcut. The main difference being that the caller still has to handle the error of a function using "?". (even if it's by punting further up the call stack with more "?", which you could argue is exactly how exceptions work, but it is at least explicit in what functions can fail and which don't) |
|
Yes, this is exactly what I meant.
> it is at least explicit in what functions can fail and which don't
So is Java with exceptions (at least as long as developers are even slightly disciplined).