3 ms·
You very likely can't always answer the question "will this function throw?", but it should be relatively easy to identify the subset of function that recursive
by gpderetta 2y ago
You very likely can't always answer the question "will this function throw?", but it should be relatively easy to identify the subset of function that recursively call functions that are guaranteed not to throw. That's only a subset of all non-throwing functions of course.
- Arech 2y agoYes, my mistake was in confusion a run-time question "will it throw?" with "can it throw in theory?". The latter if I'm not mistaken again only requires a throw statement somewhere in a non-dead code, which is totally possible to find out for a code compiler could see.