in reply to What esteemed monks think about changes necessary/desirable in Perl 7 outside of OO staff
Extend last to accept labels
last already accepts labels.
implement "post loop switch"
That's horrible. Noone uses continue since it doesn't give access to the lexical vars of the loop, and this suffers from the same problem.
See Donald Knuth Structured Programming with go to Statements programming with goto statements
Perl already has a goto statement.
That said, while I use goto regularly in C, there's no reason to use it in Perl.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: What esteemed monks think about changes necessary/desirable in Perl 7 outside of OO staff
by Tux (Canon) on Sep 15, 2020 at 09:30 UTC |