Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91739 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78799 invoked from network); 17 Mar 2016 22:32:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Mar 2016 22:32:40 -0000 X-Host-Fingerprint: 2.122.199.30 unknown Received: from [2.122.199.30] ([2.122.199.30:5795] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 3F/70-02405-6803BE65 for ; Thu, 17 Mar 2016 17:32:39 -0500 Message-ID: <3F.70.02405.6803BE65@pb1.pair.com> To: internals@lists.php.net References: <1458149992.3969.2.camel@kuechenschabe> <1458151531.3969.8.camel@kuechenschabe> <1458153695.3969.16.camel@kuechenschabe> Date: Thu, 17 Mar 2016 22:32:35 +0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 MIME-Version: 1.0 In-Reply-To: <1458153695.3969.16.camel@kuechenschabe> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Posted-By: 2.122.199.30 Subject: Re: [PHP-DEV] [RFC Discussion] Typed Properties From: ajf@ajf.me (Andrea Faulds) Hi Johannes, Johannes Schlüter wrote: > On Wed, 2016-03-16 at 19:15 +0100, Bob Weinand wrote: >> >> Eih, only to typed properties. Everything else would be insane ;-) >> Sorry for being imprecise. > > Ok, quite a lot better, but still weird difference to the language. > > > There's a notable amount of places where references are being used and > often users aren't aware. (Binding parameters in database queries, in > order to support OUT parameters, comes to mind, many array functions > take an array, some functions use it to report error codes, ...) > > I guess this will be a famous support issue. > > And yeah, I'd love to "fix" all those places and get rid of the > references, but BC ... it's quite massive :-) > Disallowing references here might make users more aware of which functions take parameters by reference, and avoid accidentally modifying values. So this part of the RFC might be a good thing. Thanks. -- Andrea Faulds https://ajf.me/