New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'Exiting eval via next' when explicit label given #16612
Comments
From @epaCreated by @epaI think I understand the rationale for this warning: % perl -wE 'foreach (1) { eval { next } }' However, when the loop label is explicitly given, I don't believe it should warn % perl -wE 'LOOP: foreach (1) { eval { next LOOP } }' The programmer has specified exactly which control flow structure the In my opinion the whole warning about 'Exiting eval via next' is a I guess though it could still warn when the labelled block *is* an eval! % perl -wE 'FOO: eval { redo FOO }' Perl Info
|
From @xsawyerxI disagree with this. I believe "next" should work in an eval, no matter On 07/06/2018 07:57 PM, Ed Avis (via RT) wrote:
|
The RT System itself - Status changed from 'new' to 'open' |
From @epaOn Sat, 25 Aug 2018 02:03:10 -0700, xsawyerx@gmail.com wrote:
Have I misunderstood? It appears you are agreeing with the bug report, not disagreeing. The bug is to stop issuing a warning in some cases when 'next' is given inside 'eval'. Of course, it should continue working as it does now, just more quietly. To keep the scope of the bug as small as possible I filed it just for the specific case of a loop label being given. However, if the perl5-porters think the warning should disappear in all cases, that would be even better. |
Migrated from rt.perl.org#133339 (status was 'open')
Searchable as RT133339$
The text was updated successfully, but these errors were encountered: