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

Re: strictness and "use 5.whatever"

Thread Previous | Thread Next
Paul "LeoNerd" Evans
March 19, 2023 22:57
Re: strictness and "use 5.whatever"
Message ID:
On Sat, 11 Mar 2023 07:31:50 +0000
Zefram via perl5-porters <> 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

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      |  |

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