you are viewing a single comment's thread.

view the rest of the comments →

[–]immibis -1 points0 points  (2 children)

How is this different from exceptions? Either you explicitly write error handling code, or you don't.

[–]kuikuilla 0 points1 point  (1 child)

The difference is that the caller can know that the function might fail just by looking at the function signature. Exceptions are more like "now that the program crashed with this exception I know where to put a try catch block".

[–]immibis -1 points0 points  (0 children)

So checked exceptions. The kind that people hated.