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

Re: for 5.24: new categories for strict/warnings?

Thread Previous
From:
John Alvord
Date:
June 3, 2015 14:02
Subject:
Re: for 5.24: new categories for strict/warnings?
Message ID:
CACd6g0t7d67g2zAGZBVv2Lr2CkU3xi6iA_89LrtKwd8ti4AEnQ@mail.gmail.com
Maybe that 'I-am...' should be added instead of all!
On Jun 3, 2015 6:26 AM, "Paul "LeoNerd" Evans" <leonerd@leonerd.org.uk>
wrote:

> On Wed, 3 Jun 2015 09:15:04 -0400
> Ricardo Signes <perl.p5p@rjbs.manxome.org> wrote:
>
> > 'all' can remain available in warnings.pm and be made available in
> > strict.pm, although I'd personally discourage turning 'all' on,
> > except maybe in private testing, for the sake of forward
> > compatibility.  Yes, some existing code may be affected because it
> > says "use warnings 'all'" explicitly, but we already add new kinds of
> > warnings, we're just very circumspect in doing so -- as we'd continue
> > to be in adding default warnings.  No existing code does "use strict
> > 'all'" because there is no "all" yet.
>
> I'd put massive warnings around
>
>   use strict 'all';
>
> because it is effectively saying
>
>   use strict
> 'I-am-happy-for-any-future-version-of-perl-to-break-my-program';
>
> > With this in place, we can add more strictures and less-critical
> > warnings without the worry that they're breaking old programs,
> > because old programs won't have them enabled.
>
> This sounds like an excellent idea; we do have a number of pragmata
> sitting around that would make good strict.pm candidates...
>
> +1 from me
>
> --
> Paul "LeoNerd" Evans
>
> leonerd@leonerd.org.uk
> http://www.leonerd.org.uk/  |  https://metacpan.org/author/PEVANS
>

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About