Front page | perl.perl5.porters |
Postings from June 2020
Re: Announcing Perl 7
Thread Previous
|
Thread Next
From:
Craig A. Berry
Date:
June 26, 2020 20:54
Subject:
Re: Announcing Perl 7
Message ID:
CA+vYcVyW9+73wDJF5nqmUWQSCUewnhX6WTrFpKuPERq7RVqxNw@mail.gmail.com
On Fri, Jun 26, 2020 at 1:25 PM demerphq <demerphq@gmail.com> wrote:
>
> On Fri, 26 Jun 2020 at 18:03, Dave Mitchell <davem@iabyn.com> wrote:
> > So for example, running a plain perl script using a perl7 interpreter is
> > as if the following lines had been injected at the top of the script:
> >
> > use warnings;
> > use strict;
> > use feature 'signatures';
> > no feature 'indirect';
> > ... etc ...
> >
> > is that the same as your understanding?
>
> Depends on your definition of "as if".
>
> If it means "exactly the same as", then no, that isnt my expectation.
>
> If it means "produces the same practical outcome for the developer" then yes.
>
> Meaning that if my understanding of what "use strict;" will imply is
> correct then we would probably not make the v7 semantics actually
> trigger strict.pm, the latter would be used only in legacy code.
This is super confusing to me. I think I hear you saying that 7.0.0
will have strictness enforced by default, albeit not via strict.pm.
OK. But then you also said you have the impression that actually
putting "use strict;" at the top of your code will disable the v7
feature bundle and be equivalent to the backward compatibility pragma
but with strict.pm loaded. Is that really what you are saying? That
means everyone who has ever followed the advice to enable strictness
will have to remove the explicit "use strict;" from their code in
order to get all the new on-by-default features. That does not sound
like the principle of least surprise to me; the v7 semantics would be
invisible to well-maintained software that follows coding standards,
and a big, incompatible wallop to everything else. Hopefully I'm just
missing a clue here somewhere and have not understood what is really
being proposed.
Thread Previous
|
Thread Next