Re: [RFC] Explicit call-site send-by-ref syntax

From: Date: Mon, 29 Jul 2019 11:08:57 +0000
Subject: Re: [RFC] Explicit call-site send-by-ref syntax
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-106320@lists.php.net to get a copy of this message
On Mon, Jul 29, 2019, 10:40 Claude Pache <claude.pache@gmail.com> wrote: > > > > 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. > Yes: usually replaced by [] or wrappers of those functions that de-reference the variables, so that no references are used. >

« previous php.internals (#106320) next »