http://qs321.pair.com?node_id=11118521


in reply to Announcing Perl 7

I will welcome the version after 7.0.0, for .0.0 version would be very much the same as 5.32. Not much to gain there.

I especially like the plan that experimental features would be temporary, turning into the core of the language or be removed. I just hope Perl 7 does not create its own backward compatibility baggage anew to tow (until Perl 8?).

Another thing I like about proposed Perl 7 is that it would also remove the need to specify a perl version in order to use non-experimental, permanent features that that particular version brings. hippo corrected me later For example, need to add use v5.10; to use //= with perl 5.10.

Replies are listed 'Best First'.
Re^2: Announcing Perl 7
by hippo (Bishop) on Jun 25, 2020 at 12:35 UTC
    ... it would also remove the need to specify a perl version in order to use non-experimental, permanent features that that particular version brings. For example, need to add use v5.10; to use //= with perl 5.10.

    Perhaps I've misunderstood you but I don't think that would be a change. I can quite happily use defined-or-equals without such a declaration in 5.10 (admittedly 5.10.1 which is the nearest version to which I have access - is it different for 5.10.0?).

    $ perl -v | head -3 This is perl, v5.10.1 (*) built for x86_64-linux-thread-multi $ perl -e '$z //= 20; print "$z\n";' 20 $

      Thanks much, hippo, for correcting me. I might have mixed my memory of use 'v5.10' so that program would not compile with perl 5.8 when using "//=".

      Would a better example be of say where in perl 5.32 still need to enable it via feature or v5.10?

        Yes, there are two kinds of features, those using the feature pragma and those not using it. See my Syntax::Construct which tries to address it (and will be obsoleted by Perl 7, yay!)

        map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
Re^2: Announcing Perl 7
by marto (Cardinal) on Jun 25, 2020 at 12:07 UTC

    "Not much to gain there." Unless they make it a James Bond themed release!