5 ms·
this is solved ore cleanly with escape continuation/exceptions. Perl also provides 'last LABEL', which is handy (lets you break out of any level of nesting).
by nothingmuch 17y ago
this is solved ore cleanly with escape continuation/exceptions.
Perl also provides 'last LABEL', which is handy (lets you break out of any level of nesting).
I guess in a language like C where you can have neither and function calls are slow so the 'return' escape continuation is also unusable there is a reason to use goto for this.