Do any languages that support retry
constructs in exception handling track and expose the number of times their catch
/rescue
(and/or try
/begin
) blocks have been executed in a particular run?
I find myself counting (and limiting) the number of times a code block is re-executed after an exception often enough that this would be a handy language built-in.