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

Re: [perl #126715] Deprecate barewords?

Thread Previous | Thread Next
From:
Abigail
Date:
November 23, 2015 15:47
Subject:
Re: [perl #126715] Deprecate barewords?
Message ID:
20151123154715.GA32552@almanda.fritz.box
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?



Abigail

Thread Previous | 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