develooper Front page | perl.perl5.porters | Postings from June 2011

RFC: Allow bare ‘continue;’ without feature.pm

Thread Next
From:
Father Chrysostomos
Date:
June 12, 2011 16:12
Subject:
RFC: Allow bare ‘continue;’ without feature.pm
Message ID:
774AF4C2-0B51-4C62-BD48-C2F94D65DCFC@cpan.org
$ perl5.14.0 -e 'continue;'
syntax error at -e line 1, near "continue"
Execution of -e aborted due to compilation errors.

I thought the whole purpose of feature.pm was to avoid conflicts with user-defined subroutines. Since ‘continue’ is a syntax error anyway without feature.pm, should it be necessary to load feature.pm to get a bare ‘continue’ as a keyword (with its when-exiting meaning)?

Making it the same as any other keyword, and not dependent upon feature.pm, actually simplifies the code in toke.c
Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About