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

Re: Announcing Perl 7

Thread Previous | Thread Next
Paul "LeoNerd" Evans
June 27, 2020 17:00
Re: Announcing Perl 7
Message ID:
On Sat, 27 Jun 2020 12:46:53 -0400
Dan Book <> wrote:

> I disagree, with both the premise and conclusion. It is in use, maybe
> not always explicitly, but via modules doing the exact same thing.
> Mojolicious currently provides the equivalent of "use v5.16" to all
> of its own and user code, plus some other useful things like "use
> warnings" and "use utf8" which we should really consider adding to
> the "use VERSION" functionality. Any time which I could use "use
> VERSION" and did not, it was only because I end up having to add an
> explicit "use warnings" anyway.

I'm with Dan on this one.

I would probably use "use VERSION" a lot more often, if it actually did
more things. At the moment it barely has any effect besides declaring
the required version. If "use VERSION" actually did turn on warnings
and generally fiddled around with featuresets a lot more like we're
proposing - and a use v7 would - then I would use it a lot more.

I don't think the argument that "nobody uses use VERSION now" to be all
that appealing. Nobody uses it now because it's largely useless. Make
it useful and people will use it.

> To summarize my overall point: I do not think that changing the
> default enabled features sufficiently solves the stated problems, to
> justify the amount of effort it will take to overcome the breakage it
> will introduce, when compared with an improved "use v7" which does
> not introduce any breakage and solves these problems as well.


I especially agree with the part about authors of CPAN modules trying
to be polite to older versions - I have quite a few of those myself.
Right none almost none of them will be capable of being 7-friendly if 7
just presumes its semantics without my say-so. If 7 required "use v7"
to actually turn on 7-syntax then things like List::UtilsBy will
continue to run without the horrible hack that is currently my attempt
to monkeypatch a :prototype() into older Perls. [see other thread]

Paul "LeoNerd" Evans      |  |

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