Re: [PHP-DEV] Re: Removal of ${} string interpolation in PHP 9

2022-05-24 Thread Rowan Tommins
On 24/05/2022 21:36, Michael Morris wrote: I can understand removing this feature since it is a bit confusing, but are there any plans to replace it - say with the template literal syntax of JavaScript? For those needing to refactor having something to switch to would be preferable than having

Re: [PHP-DEV] Re: Removal of ${} string interpolation in PHP 9

2022-05-24 Thread Michael Morris
I can understand removing this feature since it is a bit confusing, but are there any plans to replace it - say with the template literal syntax of JavaScript? For those needing to refactor having something to switch to would be preferable than having the feature dropped. Or does PHP have some

Re: [PHP-DEV] Re: Removal of ${} string interpolation in PHP 9

2022-05-23 Thread Robert Landers
On Mon, May 23, 2022 at 12:46 AM Mark Randall wrote: > > On 20/05/2022 10:05, Ilija Tovilo wrote: > > So unless there are concerns I will amend that in the RFC. > > Erroring it out makes sense to me. > > As we don't include any target version specification in PHP files, the > safest bet it so

[PHP-DEV] Re: Removal of ${} string interpolation in PHP 9

2022-05-22 Thread Mark Randall
On 20/05/2022 10:05, Ilija Tovilo wrote: So unless there are concerns I will amend that in the RFC. Erroring it out makes sense to me. As we don't include any target version specification in PHP files, the safest bet it so prevent the silent change from potentially leaking through the

Re: [PHP-DEV] Re: Removal of ${} string interpolation in PHP 9

2022-05-22 Thread Peter Bowyer
On Sun, 22 May 2022 at 03:26, Ben Ramsey wrote: > In my reading of the RFC, I assumed the first approach: completely > remove the syntax and make "${}" result in the literal string "${}". > I voted Yes on this RFC, and that was my expectation. Otherwise we haven't entirely removed it, and left

[PHP-DEV] Re: Removal of ${} string interpolation in PHP 9

2022-05-21 Thread Ben Ramsey
On 5/20/22 04:05, Ilija Tovilo wrote: Hi everyone It was pointed out to me that unfortunately the "Deprecate ${} string interpolation" RFC didn't specify *how* the feature would be removed in PHP 9. https://wiki.php.net/rfc/deprecate_dollar_brace_string_interpolation