Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91662 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 25968 invoked from network); 14 Mar 2016 20:19:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 14 Mar 2016 20:19:33 -0000 Authentication-Results: pb1.pair.com header.from=bjorn.x.larsson@telia.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=bjorn.x.larsson@telia.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain telia.com from 81.236.60.156 cause and error) X-PHP-List-Original-Sender: bjorn.x.larsson@telia.com X-Host-Fingerprint: 81.236.60.156 v-smtpout3.han.skanova.net Received: from [81.236.60.156] ([81.236.60.156:45576] helo=v-smtpout3.han.skanova.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C8/70-20120-2DC17E65 for ; Mon, 14 Mar 2016 15:19:32 -0500 Received: from [192.168.7.7] ([195.198.188.252]) by cmsmtp with SMTP id fYxbahWHncCUkfYxbaeaMg; Mon, 14 Mar 2016 21:19:27 +0100 To: Colin O'Dell , Patrick ALLAERT References: Cc: PHP Internals Message-ID: <56E71CD3.8030402@telia.com> Date: Mon, 14 Mar 2016 21:19:31 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4wfAou0x+Xlwo2zxDi6xRT62JEh64XahzCuclXUqn28NEfxLRmnXi9qeEGcUSPqyKAvjMJ+gGJrkMKKrWUyxNBjSfezS0Gq0eY8BvmrW0wFDsWIfRivEDS 9v0cfxDTor2zy5I6F5hav+CpEGsH88M9uDuKMk5xclR6CLoQfpWCr6TNaCAFXjXapRGw4++hz71zW3uV4zJukSDghUAt3+f5N6hMvNmXAVI2TWjlLUt5Zr0r RBbNrVd2yDbNyjyJC/NbXA== Subject: Re: [PHP-DEV] [RFC Discussion] "var" Deprecation From: bjorn.x.larsson@telia.com (=?UTF-8?Q?Bj=c3=b6rn_Larsson?=) Den 2016-03-14 kl. 19:14, skrev Colin O'Dell: >> Forcing people to specify a visibility for properties and not for methods >> would add yet another inconsistency in the language. >> > That's a really good point. However, I think we currently have a different > inconsistency: declaring functions without explicit visibility is possible > without needing an extra (and redundant) keyword. > > The inconsistency you mention could easily be solved by a future RFC. We > could: > > 1. Require visibility for class methods. > 2. Allow declaring properties without using any keywords. > 3. Use some other approach? > > I don't think we necessarily need to choose an option at this time (or > perhaps ever). > Interesting :) Think option 1 implies a BC break. Would it also affects interface declarations making public keyword mandatory? Personally I like option 2, but feels a bit beyond the scope of this RFC. Regards //Björn