[RFC] Explicit call-site send-by-ref syntax
| From: | Nikita Popov | Date: | Wed, 06 Dec 2017 19:49:03 +0000 |
| Subject: | [RFC] Explicit call-site send-by-ref syntax | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-101254@lists.php.net to get a copy of this message | ||
Hi internals,
I'd like propose optional support for explicitly marking by-reference
argument passing at the call-site, in addition to the declaration-site:
https://wiki.php.net/rfc/explicit_send_by_ref
In short, while currently we have
function byRef(&$ref) {...}
byRef($var);
this proposal would also allow
function byRef(&$ref) {...}
byRef(&$var);
so that the use of by-reference passing is obvious without having to
consult the function declaration.
Regards,
Nikita