4 ms·
I think this would be a chance to rehabilitate the much-maligned GOTO keyword. Perl has used "goto &foo" for that exact purpose for ages. It just became yet a
by btilly 14y ago
I think this would be a chance to rehabilitate the much-maligned GOTO keyword.
Perl has used "goto &foo" for that exact purpose for ages. It just became yet another random feature that experts know about, regular programmers ignore, and critics use to show how terrible the language is.
- draegtun 14y agoAnd there are a few CPAN modules for those who are squeamish about using goto :) - https://metacpan.org/module/Sub::Call::Tail https://metacpan.org/module/Sub::Call::Tail - https://metacpan.org/module/Sub::Call::Recur https://metacpan.org/module/Sub::Call::Recur