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

From: Date: Mon, 29 Jul 2019 21:10:08 +0000
Subject: Re: [RFC] Explicit call-site send-by-ref syntax
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.internals 
Request: Send a blank email to internals+get-106327@lists.php.net to get a copy of this message
Hi! > 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. Again, by "usually" you mean "I do that" and maybe "my friends do that", but that claim is not generally true. Also, array_push() is pretty bad example here as it is pretty much the only by-ref function that has an almost perfect syntax analogue in the language ([]). None of the others do. -- Stas Malyshev smalyshev@gmail.com

« previous php.internals (#106327) next »