Am 06.12.2017 um 20:49 schrieb Nikita Popov:
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
IMHO a bad idea after "PHP Fatal error: Call-time pass-by-reference has been removed" not that long ago which was exactly the same syntax
https://stackoverflow.com/questions/8971261/php-5-4-call-time-pass-by-reference-easy-fix-available https://stackoverflow.com/questions/18046846/why-is-function-call-by-reference-in-php-deprecated -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php
