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

Re: use warnings ':most'

Thread Previous
Dan Book
June 2, 2021 23:08
Re: use warnings ':most'
Message ID:
On Wed, Jun 2, 2021 at 7:02 PM Leon Timmermans <> wrote:

> I would like to propose to add a new warning category, tentatively named
> "most". This would include everything in :all except warnings that are
> likely to give false positives. In 5.36 that would be :all minus 'once',
> but I can imagine more warnings being added to :all in the future that
> wouldn't be appropriate for :most.
> Secondly, I want «use warnings» without a tag to do :most instead of :all,
> and likewise «use 5.36;».

+1. The same design needed for this can allow adding optional warnings
which are not enabled by "use warnings" or "use vX" but can be explicitly
requested. I think whether it uses the existing 'all' name is an
implementation detail because that name is rarely used by users. Previous


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