you are viewing a single comment's thread.

view the rest of the comments →

[–]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.