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

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

Thread Previous | Thread Next
From:
Eric Brine
Date:
June 3, 2015 14:21
Subject:
Re: for 5.24: new categories for strict/warnings?
Message ID:
CALJW-qEJrvYXdXtCGjGXCygEWaEis85c=MGUB7naKUmekPb+fQ@mail.gmail.com
On Wed, Jun 3, 2015 at 9:15 AM, Ricardo Signes <perl.p5p@rjbs.manxome.org>
wrote:

> What is preventing us from changing the meaning of:
>
>   use strict;    # which acts like: use strict 'all'
>   use warnings;  # which means    : use warnings 'all'
>
> Why not make them mean:
>
>   use strict 'default';
>   use warnings 'default';
>

For strict, why not use a version argument like `use feature`?

(It would be nice if `use feature` actually changed the meaning of `use
strict;`, but I suspect that would be too complicated.)

For warnings, that's a backwards compatible change I oppose. I was promised
that `use warnings;` would enable all warnings, and I've been recommending
its usage on that basis for a decade.

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