Hi,

On Mi, 2017-12-06 at 20:49 +0100, Nikita Popov wrote:
> 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
> 

I would rather discourage usage of references. Since PHP 7 the cost of
breaking cow isn't as expensive anymore, but receiving values by value
and returning by value is more idiomatic imo. Using objects can be more
efficient.

johannes

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to