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

Re: patches wanted: default warnings/strict

Thread Previous | Thread Next
October 16, 2015 14:51
Re: patches wanted: default warnings/strict
Message ID:
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:
> 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)?


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About