Hacker News new | ask | show | jobs
by btilly 4931 days 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.

1 comments

And 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::Recur