Re: [RFC] Deprecate Backtick Operator (V2)
| From: | Chase Peeler | Date: | Tue, 08 Oct 2019 14:29:51 +0000 |
| Subject: | Re: [RFC] Deprecate Backtick Operator (V2) | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-107419@lists.php.net to get a copy of this message | ||
On Sun, Oct 6, 2019 at 9:18 AM Reinis Rozitis <r@roze.lv> wrote:
> > -----Original Message-----
> > From: Olumide Samson [mailto:oludonsexy@gmail.com]
> >
> > it should be deprecated for exec usage since they both do same thing
>
> With that logic <?= should also be deprecated in favor of echo because it
> does the same thing and is hard to find in internet search engines (was in
> some other argument).
>
>
And we should deprecate the "print" command, since it's the same as echo.
We should deprecate 'printf', since you can just do 'echo sprintf' and, now
that I think about it, we should deprecate sprintf as well, since you can
just use vsprintf. It's a simple change too... sprintf($s,$a,$b,$c) =>
vsprintf($s,[$a,$b,$c]);. I'm just it can be done with just a simple regex
search/replace.
The fact that are SO many different ways to output text is REALLY confusing
for new developers. I think it's imperative we fix all of these items RIGHT
NOW. By doing so, I'm sure all the .NET developers that are talking smack
about PHP will suddenly denounce c# and start using PHP as well!
>
> > This isn't high cost breaking changes coz it has a verifiable, ready
> alternative to upgrade to without huge Regex searches.
>
> Since `` are used for literal strings (for poorly chosen reserved words as
> field, table names (which happens from time to time)) in MySQL (multiline)
> queries I doubt there is a simple way to distinguish and replace everything
> to exec().
>
> rr
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
Chase Peeler
chasepeeler@gmail.com