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

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

Thread Previous | Thread Next
From:
Paul "LeoNerd" Evans
Date:
June 29, 2020 17:33
Subject:
Re: Dual-life perl 5-or-7 code and prototypes - impossible?
Message ID:
20200629183346.51d4d462@shy.leonerd.org.uk
On Mon, 29 Jun 2020 19:13:42 +0200
Salvador Fandiño <sfandino@gmail.com> wrote:

> If you want to remain compatible with both perl5 and perl7, you are 
> going to have the worst of both worlds. You would not be able to use 
> "features" removed from perl7 neither would you be able to use the
> new features added.

I'm not looking for my code to use new features of perl 7. I'm looking
for it to install cleanly without breaking.

Right now it is impossible (outside of Sub::Attribute::Prototype or
other hackery) to write a .pm file using prototypes which will work
correctly on both perl 5 and perl 7.

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