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

Re: deprecating non-default postderef_qq

Thread Previous | Thread Next
June 15, 2021 18:09
Re: deprecating non-default postderef_qq
Message ID:
"Ricardo Signes" <> wrote:
>On Sun, May 23, 2021, at 12:23 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 }".
>I would like to hereby a branch that makes this happen.  I believe the work (at a very high level) is:

hereby <x> a branch?

> * add a deprecation warning when the "no feature 'postderef_qq'" behavior is triggered
> * make sure the perldiag entry indicates how to fix the error while keeping the old behavior
> * test updates

Could you clarify which if any of these will be affected?
  "Eat more $pies-"
  "Eat more $pies->"
  "Eat more $pies->@"


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