develooper Front page | perl.perl5.porters | Postings from May 2021

Re: use v5.36; use warnings;

Thread Previous | Thread Next
From:
Martijn Lievaart
Date:
May 30, 2021 12:58
Subject:
Re: use v5.36; use warnings;
Message ID:
580bddb7-d31b-7f89-583e-6e950c0a888f@rtij.nl

Op 30-05-2021 om 02:43 schreef Darren Duncan:
> As for the inconsistency this would raise with "no strict", I propose 
> the solution is simply to emit a warning in any program that has a "no 
> strict" prior to a "use 5.36" and the warning would say the statements 
> should be reordered so the "no strict" appears afterwards.
>
> That solution means actual programs are consistent in appearance and 
> behavior. While "no strict" would still suppress strict if used first, 
> anyone attempting to use it would be warned to stop doing so, and so 
> that behavior becomes unused.
>

I would say this is the most sensible solution.


M4



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