Re: [RFC] Explicit call-site send-by-ref syntax
| From: | Claude Pache | Date: | Mon, 29 Jul 2019 08:39:59 +0000 |
| Subject: | Re: [RFC] Explicit call-site send-by-ref syntax | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-106319@lists.php.net to get a copy of this message | ||
> Le 28 juil. 2019 à 21:12, Marco Pivetta <ocramius@gmail.com> a écrit :
>
> On Sun, Jul 28, 2019 at 9:06 PM Stanislav Malyshev <smalyshev@gmail.com>
> wrote:
>
>> Hi!
>>
>>> Nah, by-ref is pretty much avoided in OSS packages, but we can surely
>>> survey the ecosystem to verify this.
>>
>> I literally work with code that uses references every day. So may be you
>> haven't encountered it but the attitude of "nah, never happens" I think
>> is a bit misplaced.
>> Also please remember not all PHP code is latest composer packages. In
>> fact, most of it isn't.
>>
>
> I do work with code like that: the teams maintaining these codebases are
> actively removing by-ref calls when they encounter them.
>
> Marco Pivetta
Do your teams actively remove direct calls to array_push() and array_multisort()? In any case, I’m
sure that most PHP developers don’t.
—Claude