develooper Front page | perl.perl5.porters | Postings from May 2008

Re: Should potentially confusing labels emit a warning?

Thread Previous | Thread Next
From:
Spiros Denaxas
Date:
May 8, 2008 04:41
Subject:
Re: Should potentially confusing labels emit a warning?
Message ID:
bba689ec0805080441k9eb9b86n9eb46b0b27e2fbb5@mail.gmail.com
On Thu, May 8, 2008 at 12:35 PM, Aristotle Pagaltzis <pagaltzis@gmx.de> wrote:
>
>  A Perl::Critic policy has been submitted for this, but it seems
>  to me that this is a potential bug worthy of attention from the
>  core. Now, I am hesitant on adding new warnings but I think in
>  this case it really is worthwhile; it could, after all, be
>  disabled easily enough. (What was the consensus on making
>  `use warnings` mean something other than `use warnings 'all'`?)
>
>  Regards,
>  --
>  Aristotle Pagaltzis // <http://plasmasturm.org/>
>

Hullo,

I agree that this can potentially save people a fair amount of time when trying
to track down bugs in their code but I am somewhat hesitant of adding
a new warning just for it. Could this potentially be integrated in the
'diagnostics'
pragma and be explicitly printed only if the pragma is being used?

Spiros

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