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

Re: Announcing Perl 7 Perl5 Porters <perl5-porters@perl.org>

Thread Previous | Thread Next
From:
=?UTF-8?Q?Salvador_Fandi=c3=b1o?=
Date:
June 30, 2020 11:53
Subject:
Re: Announcing Perl 7 Perl5 Porters <perl5-porters@perl.org>
Message ID:
72cf3147-66bf-6f58-f7fb-f67fcfe80531@gmail.com
On 30/6/20 13:37, Paul "LeoNerd" Evans wrote:
> On Tue, 30 Jun 2020 12:02:10 +0200
> Salvador FandiƱo <sfandino@gmail.com> wrote:
> 
>> It you want to avoid the "use v7;" line, then you should be able to
>> tell perl explicitly in some way you want the 7 semantics. The only
>> sane way I can see for that, is using different file terminations.
>> I.e. p7, pl7, pm7, t7.
>>
>> And when perl 8 comes out, you can switch to p8, pl8, etc.
> 
> This would be an odd suggestion.
> 
> I believe the main motivation for people saying they don't want to
> "use v7" is precisely to avoid having to update to "use v8" and so on
> in the future; having to chase the latest-and-greatest by making a
> single character change to their code every decade or so.

But that just completely misses the point that some of your fine perl 7 
code would break when run under the perl 8 interpreter unless you hint 
it to use the perl 7 semantics, in some way, right?

I don't know if other people like to revisit their old code frequently 
and update it to use new features as they become available. Definitively 
that's not my case!

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