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 16:43
Subject:
Re: [perl #126715] Deprecate barewords?
Message ID:
20151123164348.GA1771@almanda.fritz.box
On Mon, Nov 23, 2015 at 05:40:41PM +0100, Eirik Berg Hanssen wrote:
> On Mon, Nov 23, 2015 at 4:47 PM, Abigail <abigail@abigail.be> wrote:
> 
> > 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?
> >
> 
>   It helps people who are not intentionally using this (mis-)feature, but
> happen by accident to write code typically one-liners) that uses it (and do
> not explicitly enable strictures nor warnings – typically in one-liners, I
> guess).
> 
>   Like, forgetting to import a constant, or misspelling its name …


Forcing warnings upon users who have choosen not to enable warnings
doesn't sound to me as even remotely user friendly.



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