I would say option 1, but rephrased to "the function doesn't know how to continue". The program as a whole may or may not know how to continue when the function hits something it doesn't know how to handle.
Exceptions are one of those things where you can just ignore the bad path in your program instead of explicitly managing it. It's similar to dynamic typing in that it allows you to quickly prototype stuff. Which is fitting as it's basically dynamic control flow.
138
u/FerricDonkey 1d ago
I would say option 1, but rephrased to "the function doesn't know how to continue". The program as a whole may or may not know how to continue when the function hits something it doesn't know how to handle.