develooper Front page | perl.perl5.porters | Postings from May 2021

Re: deprecating non-default postderef_qq

Thread Previous
Nicholas Clark
May 26, 2021 08:00
Re: deprecating non-default postderef_qq
Message ID:
On Sun, May 23, 2021 at 6:24 PM Ricardo Signes <> wrote:

> That said, I believe this is a very niche feature that we are better
> served by eliminating.  To do this, I propose:
>    - In 5.36.0:  We make cases where postderef_qq would occur, if not for
>    the feature being off, issue a deprecation warning, but act as before.
>    That is:  "Eat more $pies->@{ $x }" will interpolate $pies and @$x but also
>    warn.  User can eliminate the warning by changing their code to read "Eat
>    more $pies\->@{ $x }".
>    - In 5.40.0:  We make postderef_qq effectively on by default, without
>    the option to disable it, as postderef itself is.
> This is not a massive improvement in the language, and I'm not here to
> sell it as one.  It's a small reduction in complexity by making the syntax
> just a bit more consistent.  This is a bit like our work to call out the

Yes, this seems like a good plan.

Nicholas Clark

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About