4 ms·
Continuing after arbitrary computation events that are meant to be fatal seems to me to be asking for trouble. It's why folk reviled Basic for its "On Error Res
by raiph 11y ago
Continuing after arbitrary computation events that are meant to be fatal seems to me to be asking for trouble. It's why folk reviled Basic for its "On Error Resume Next" command. It has nothing to do with what Perl is about.
Optionally resuming after a computation event that is not meant to always be fatal in a principled manner is an excellent, well known, decades-old power programming technique available in a few sufficiently powerful languages. See, for example, Common Lisp's condition system [1] or Perl 6's similar system.[2]
[1] https://en.wikipedia.org/wiki/Common_Lisp#Condition_system https://en.wikipedia.org/wiki/Common_Lisp#Condition_system
[2] http://design.perl6.org/S04.html#Exceptions http://design.perl6.org/S04.html#Exceptions