Hi,
On 15.06.19 23:53, Wes wrote:
https://wiki.php.net/rfc/alternative-closure-use-syntax
Thanks for the RFC and effort,
I know it seems overkill and wrong to have two different syntaxes for the
same thing, but I really believe that's all we need to fix one of the most
hated PHP syntax bits
Hi Alexandru,
I don't think there is intention to do that. In particular with pass by
reference. Importing variables by-ref likely will be explicit, given recent
discussions on the matter.
The new Closures or the old ones might automatically "copy" all variables
(by-value) at some point, but I doub
On 15/06/2019 22:53, Wes wrote:
Hello PHP, I just published
https://wiki.php.net/rfc/alternative-closure-use-syntax
I would love your opinion on this
I'm not overly fond of it myself because I think it could make it
slightly more difficult to parse in my brain.
If there was a:
$x = 0;
$y =