develooper Front page | perl.perl5.porters | Postings from November 2015

Re: [perl #126715] Deprecate barewords?

Thread Previous | Thread Next
November 23, 2015 15:47
Re: [perl #126715] Deprecate barewords?
Message ID:
On Mon, Nov 23, 2015 at 06:53:30AM -0800, Ed Avis via RT wrote:
> Yes, by 'barewords' I meant to say the treatment of unquoted identifiers as strings, in cases where "use strict 'subs'" would give an error.  That is not the case for STDERR.
> Barewords will give a warning "clash with future reserved word", but not if they have characters outside [a-z].
> My question is first, whether anyone is still using this feature (I have never come across code that uses it outside of golfing and poetry, but I accept that different programmers have different styles), and if the answer to the first question is "no", whether it might be time to officially deprecate this feature.

Are you going to ask the people who aren't reading p5p this as well, or
do you think p5p is representative for the Perl programmers at large?
(I don't think they are).

What is the gain by making this a mandatory warning? If noone is using
it, adding a warning doesn't do much. If people are, what good does it them?


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About