Re: [RFC] Deprecations for PHP 8.5
| From: | Larry Garfield | Date: | Tue, 29 Jul 2025 19:43:39 +0000 |
| Subject: | Re: [RFC] Deprecations for PHP 8.5 | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-128308@lists.php.net to get a copy of this message | ||
On Tue, Jul 29, 2025, at 2:22 PM, Hans Krentel wrote:
> On Monday 14 July 2025 15:29:31 (+02:00), Larry Garfield wrote:
>> Is their use for quick hacky scripts worth the cost of reserving a symbol that could be
>> repurposed for something else more generally useful in the future? (Not immediately of course, but
>> eventually.)
>>
>> --Larry Garfield
*snip*
> My educated guess is that I don't need to explain the benefits of
> _template literals_ over ordinary PHP string literals for Larry, but
> for those who are curious, this is inspired by EcmaScript and you can
> try it out in your browser or read on MDN about it.
Indeed, that's the sort of future reuse I was thinking of as well. But having this be a
template:
$foo = tpl
Something $here;
But this run a shell command:
$foo = Something $here;
Strikes me as a security nightmare waiting to happen.
--Larry Garfield