develooper Front page | perl.perl5.porters | Postings from January 2020

Re: 'use warnings' with exceptions

Thread Previous | Thread Next
From:
Dan Book
Date:
January 27, 2020 15:40
Subject:
Re: 'use warnings' with exceptions
Message ID:
CABMkAVV3TTXrk04-vWS6ux1GyKVOmq5sx=j4ycUmXxtmX9q+Eg@mail.gmail.com
On Mon, Jan 27, 2020 at 6:19 AM David Cantrell <david@cantrell.org.uk>
wrote:

>
>   use warnings qw(-foo -bar);
>
> to mean "import all the warnings except foo and bar". But it seems not
> to be. Before I put fingers to keyboard and implement it does anyone
> think it's a terrible idea?
>

I like the idea, but I think first we need to resolve the question, all
warnings or default warnings? (It's already a difficulty to add new
warnings without making them default, let's not make it harder...)

-Dan

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