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

Re: use warnings ':most'

Thread Previous | Thread Next
From:
Leon Timmermans
Date:
June 7, 2021 21:51
Subject:
Re: use warnings ':most'
Message ID:
CAHhgV8jOi5xDTBPCwE5P-3P3TyGExQatxV2W9PQDtL4Z6mGktA@mail.gmail.com
On Mon, Jun 7, 2021 at 2:15 AM Ricardo Signes <perl.p5p@rjbs.manxome.org>
wrote:

> On Sun, Jun 6, 2021, at 4:14 PM, Dan Book wrote:
>
> On Sun, Jun 6, 2021 at 4:03 PM Ricardo Signes <perl.p5p@rjbs.manxome.org>
> wrote:
>
> …and I still think that "use v5.X" should mean "use warnings 'default'"
> and that default should exist.
>
> I think it should mean what "all" means now, though, including "once."
> Let's first *create* default, meaning all the current warnings, then we
> can separately discuss what warnings might get excluded?
>
>
> I don't think 'default' is a good name for it, since it's already used to
> describe warnings which are enabled without any use of the warnings pragma
> (e.g. severe and deprecation warnings).
>
>
> Yes, quite right.  I still don't care for "most", and propose either
> "recommended" or "standard", but I will punt further name debate until we
> have an implementation. 😉
>

The leont/most-warnings branch adds it. I think it doesn't enable custom
warnings yet though, should we want that.

Leon

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