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

Re: Dual-life perl 5-or-7 code and prototypes - impossible?

Thread Previous | Thread Next
From:
Paul "LeoNerd" Evans
Date:
July 1, 2020 10:10
Subject:
Re: Dual-life perl 5-or-7 code and prototypes - impossible?
Message ID:
20200701111020.07ce9743@shy.leonerd.org.uk
On Wed, 1 Jul 2020 04:38:55 -0400
Eric Brine <ikegami@adaelis.com> wrote:

> > BEGIN {
> >     if ( $] >= 7) {
> >         require feature;
> >         feature->unimport('signatures');
> >     }
> > }
> >  
> 
> By the way, simpler:
> 
> no if $] < 7, feature => qw( signatures );

So what you're saying is that as a Perl 5 author, I have to guess what
features 7 is going to turn on so I can preëmptively opt out of them
before it comes?

What is Perl 8 going to turn on, or 9 ...?

This situation is surely ridiculous. I should not have to be predicting
what future versions will do that will be incompatible with my code so
I can ask them not to do it. Perl - any version of - shouldn't be doing
things I didn't explicitly ask it to do.

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