4 ms·
I guess you could call exception an "invisible return", since it is not obvious that "foo()" may exit the current function. But "invisible return" sounds rather
by goto11 4y ago
I guess you could call exception an "invisible return", since it is not obvious that "foo()" may exit the current function. But "invisible return" sounds rather less nefarious than "invisible goto".
I like Rusts "foo()?" syntax which explicitly indicates that the function call may exit with an error.