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

Re: patches wanted: default warnings/strict

Thread Previous | Thread Next
From:
Abigail
Date:
October 16, 2015 14:51
Subject:
Re: patches wanted: default warnings/strict
Message ID:
20151016145056.GA15392@almanda.fritz.box
On Thu, Oct 15, 2015 at 10:27:27PM -0400, Ricardo Signes wrote:
> Hey, remember the big thread about making "use warnings" mean "use warnings
> 'default'" and that?  No?  It was here:
> 
>   http://nntp.perl.org/group/perl.perl5.porters/228400
> 
> I'd been hoping to get to this myself, but it hasn't happened.  I'd like to get
> this ready for smoking so we can hopefully make this change for 5.24.
> 
> I think it should mostly be "work" and not "deep, hard thinking."  I could be
> wrong.
> 
> Who's up for it?


Having read the thread started off the link you provided, it
isn't clear to me what 'use warnings "default"' enables.

"perldoc -f warnings" talks about default warnings, (as opposed
to optional warnings), but when it comes down to discussing
the warnings category hierarchie, there's no peep about
mandatory vs optional anymore.

Now, perldiag classifies warnings in 6 classes (not counting
the non-Perl ones), with one class marked "optional". But
this classificiation is orthogonal to categories that can
be imported with "use warnings". Is "default" not a class
(or group of classes), but is it to act as a filter (you get
some warnings from all the categories you import)?



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