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

Reply via email to