Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:101255 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41757 invoked from network); 6 Dec 2017 20:08:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Dec 2017 20:08:23 -0000 Authentication-Results: pb1.pair.com header.from=lists@rhsoft.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=lists@rhsoft.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain rhsoft.net designates 91.118.73.15 as permitted sender) X-PHP-List-Original-Sender: lists@rhsoft.net X-Host-Fingerprint: 91.118.73.15 mail.thelounge.net Received: from [91.118.73.15] ([91.118.73.15:21349] helo=mail.thelounge.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 53/43-24804-13E482A5 for ; Wed, 06 Dec 2017 15:08:20 -0500 Received: from srv-rhsoft.rhsoft.net (Authenticated sender: h.reindl@thelounge.net) by mail.thelounge.net (THELOUNGE MTA) with ESMTPSA id 3ysV6P3ZM1zXMP for ; Wed, 6 Dec 2017 21:08:13 +0100 (CET) To: internals@lists.php.net References: Message-ID: <27a68b09-ecb7-a900-04e3-8eded6d0f0a7@rhsoft.net> Date: Wed, 6 Dec 2017 21:08:13 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-CH Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Explicit call-site send-by-ref syntax From: lists@rhsoft.net ("lists@rhsoft.net") 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