Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64514 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58815 invoked from network); 4 Jan 2013 04:14:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jan 2013 04:14:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=cpriest@zerocue.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=cpriest@zerocue.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zerocue.com designates 67.200.53.250 as permitted sender) X-PHP-List-Original-Sender: cpriest@zerocue.com X-Host-Fingerprint: 67.200.53.250 mail.zerocue.com Received: from [67.200.53.250] ([67.200.53.250:59595] helo=mail.zerocue.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 37/8A-00128-A2756E05 for ; Thu, 03 Jan 2013 23:14:35 -0500 Received: from [172.17.0.122] (unknown [66.25.151.173]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.zerocue.com (Postfix) with ESMTPSA id 923D41203A3 for ; Fri, 4 Jan 2013 04:14:32 +0000 (UTC) Message-ID: <50E65726.2070503@zerocue.com> Date: Thu, 03 Jan 2013 22:14:30 -0600 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: PHP Developers Mailing List References: <50E41BB6.4030901@zerocue.com> In-Reply-To: <50E41BB6.4030901@zerocue.com> Content-Type: multipart/alternative; boundary="------------050008050504080808080706" Subject: Re: [PHP-DEV] [PHP-RFC] Property Accessors 1.2 Updates / Clarifications From: cpriest@zerocue.com (Clint Priest) --------------050008050504080808080706 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Please note that I have updated and clarified v1.2 with some recent feedback: 1) Steve Clay suggested the term Guarded Property and dropping Shadowing. The "Shadowing" section has been renamed to "Guarding," some of the wording was updated and the "For Additional Clarity" was updated with nearly identical wording Steve suggested which I think brings even greater clarity. 2) The parent::$foo issue I recently posted about was changed near the end of the "Overloading Properties" section, which shows the proposed parent->$Milliseconds form. Seeing it color coded in this light makes it even more appealing and apparent I feel. 3) Removal of Accessor section was added. This was brought up as a question as to what happens and I felt what should be done is what is defined there. Other possible alternatives to number 3: 3a) The public $Foo = 5 declaration would not "shed" it's inherited accessors, they would remain or could be re-defined (but not removed). 3b) The public $Foo = 5 declaration would not be allowed with the = 5 and it would not shed its inherited accessors as 3a For maximum flexibility, I favor the proposed solution as it provides for the most flexibility, it would allow sub-classes to re-define a guarded property as a traditional property, or keep it as a guarded property (modifying the getter, adding a setter, etc). On 1/2/2013 5:36 AM, Clint Priest wrote: > Here is the updated RFC incorporating the feedback from previous > rounds of discussion. > > https://wiki.php.net/rfc/propertygetsetsyntax-v1.2 > > I'm posting it for final review so I can move to voting on Jan 7th. > > Please note that the current fork is not quite up-to-date with the RFC > but will be within a few more days. > > -Clint > -- -Clint --------------050008050504080808080706--