Re: [RFC] Explicit call-site send-by-ref syntax

From: Date: Sun, 10 Dec 2017 13:12:56 +0000
Subject: Re: [RFC] Explicit call-site send-by-ref syntax
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-101293@lists.php.net to get a copy of this message
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

« previous php.internals (#101293) next »