develooper Front page | perl.perl5.porters | Postings from March 2023

Re: strictness and "use 5.whatever"

Thread Previous | Thread Next
From:
Paul "LeoNerd" Evans
Date:
March 19, 2023 22:57
Subject:
Re: strictness and "use 5.whatever"
Message ID:
20230319225658.4d409dc5@shy.leonerd.org.uk
On Sat, 11 Mar 2023 07:31:50 +0000
Zefram via perl5-porters <perl5-porters@perl.org> wrote:

> The cutoff being 5.37 is precisely what achieves "use v5.36" retaining
> its current meaning.  Try it out on an actual 5.36.0, actual 5.37.9,
> and blead with my proposed patches: on all three, "use v5.36"
> performs soft stricture enablement.  Setting the cutoff to 5.35 would
> mean changing the effect of "use v5.36" from the soft stricture
> enablement that it currently has to the same hard stricture
> enablement that this patch gives to "use v5.37".

Yes; that is exactly the point. We wanted it to have (what you call)
the "hard stricture" behaviour in 5.36. It's just that my
implementation of it was sloppy and broke the behaviour of the lower
`use VERSION` requests as well. Your patch fixes the older versions,
but reverts `use v5.36` back to that older behaviour. We'd prefer to
keep it in its newer behaviour from 5.36 onwards.

I've raised a separate PR for that, at

  https://github.com/Perl/perl5/pull/20944

Ideally it'd be good to get this in for 5.37.10 tomorrow. Hopefully,
given it's mostly docs and more tests, it should be easy enough to
review and folks will be happy with it? *fingers crossed*.

-- 
Paul "LeoNerd" Evans

leonerd@leonerd.org.uk      |  https://metacpan.org/author/PEVANS
http://www.leonerd.org.uk/  |  https://www.tindie.com/stores/leonerd/

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