Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:59269 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 82179 invoked from network); 31 Mar 2012 13:36:33 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Mar 2012 13:36:33 -0000 Authentication-Results: pb1.pair.com smtp.mail=confik@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=confik@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.161.170 as permitted sender) X-PHP-List-Original-Sender: confik@gmail.com X-Host-Fingerprint: 209.85.161.170 mail-gx0-f170.google.com Received: from [209.85.161.170] ([209.85.161.170:43162] helo=mail-gx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DC/4A-28591-F58077F4 for ; Sat, 31 Mar 2012 08:36:32 -0500 Received: by ggmb2 with SMTP id b2so885799ggm.29 for ; Sat, 31 Mar 2012 06:36:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=q12gKZaEU2wOYLYNob+AVHmkSPcCNNFW8DEnKylRt6I=; b=UEC7tO7jYp4IHxWdknX1Dob0ZgPDdXOen1hVrZrXSRlnAyW0TIWSX3vIcXNWPP50Hf ddus6aFpoKxVuB13VzWbsrB3MnjdIRfplRS8t+mNUvA7MiU9PTVLHFOvqcISBSEcBcXe fbczoV3aqE85G04+8lQaivOXoc/gc+oy30r1ia3MM0ATYQFCy932c0muiGIwFaLTPanW 9l63+3ou6rSaRzpozEDx0ZqvsnkBkD5U8owzdcvoTXiutx9kv07W7XU7iQRDLve8Xh5v 8GRcDVUFyIL7YoIQClbs3GArtWNPP+5jURz1IVMegN7c4+gSTQBjwPRn9oDatwA8qSjD kNmQ== Received: by 10.101.180.40 with SMTP id h40mr542423anp.4.1333200989176; Sat, 31 Mar 2012 06:36:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.101.213.40 with HTTP; Sat, 31 Mar 2012 06:36:09 -0700 (PDT) In-Reply-To: <9570D903A3BECE4092E924C2985CE48554681555@MBX202.domain.local> References: <9570D903A3BECE4092E924C2985CE485517221FD@MBX201.domain.local> <4F74A64B.50200@oracle.com> <9570D903A3BECE4092E924C2985CE4855467F6CC@MBX202.domain.local> <9570D903A3BECE4092E924C2985CE48554681555@MBX202.domain.local> Date: Sat, 31 Mar 2012 18:36:09 +0500 Message-ID: To: Clint M Priest Cc: "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] (*PATCH*) getters/setters Implementation From: confik@gmail.com (Alexey Shein) 31 =D0=BC=D0=B0=D1=80=D1=82=D0=B0 2012=C2=A0=D0=B3. 18:19 =D0=BF=D0=BE=D0= =BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8C Clint M Priest =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB: > The patches are applied to this fork if anyone wants to check it out: > > https://github.com/cpriest/php-src > It would be easier to discuss/review your patch if you'd make pull request: https://wiki.php.net/vcs/gitworkflow#workflow_for_external_contrib= utors Thank you. > -----Original Message----- > From: Clint M Priest [mailto:cpriest@zerocue.com] > Sent: Thursday, March 29, 2012 8:14 PM > To: internals@lists.php.net > Subject: RE: [PHP-DEV] (*PATCH*) getters/setters Implementation > > Thanks for the feedback, I'll take care of some of these. > > What did you mean about the out of sync regarding naming? > > With the unexpected values to the methods I'm not sure what you mean, the= re are no 'expected values' to be passed. > > For the auto-backed properties it would be assigned to whatever value was= being passed, null or whatever. =C2=A0For the non auto-backed properties i= t would depend on the user-supplied getter/setter implementation. =C2=A0Am = I missing something here? > > Regarding the open questions on read-only/write-only I don't think they a= re strictly necessary any longer. =C2=A0The original RFC had them for enfor= cing a value to be read only but it would be equivalent of setting an acces= sor with just a getter and final although it would allow for it to be over-= ridden. =C2=A0Are the read-only/write-only tags desired? > > I think the test cases that are present are complete, I could not think o= f any further tests to write or I would have written them, any suggestions? > > I'll update the RFC with backward compatibility comments though I believe= there are none, anyone else see any backward compatibility issues? > > -----Original Message----- > From: Christopher Jones [mailto:christopher.jones@oracle.com] > Sent: Thursday, March 29, 2012 1:14 PM > To: internals@lists.php.net > Subject: Re: [PHP-DEV] (*PATCH*) getters/setters Implementation > > > > On 03/28/2012 08:13 PM, Clint M Priest wrote: > >> What are the next steps to get this added to some future release? >> Attached is a patch against ~/trunk > > A couple of brief comments from the sidelines without having followed pre= vious discussion in detail: > > - The RFC appears to have open questions e.g about the need for readonly = etc keywords > - The tests and RFC are out of sync regarding naming, e.g. readonly vs re= ad-only > - The RFC makes no mention of backward compatibility issues > - Did I miss seeing tests that pass in unexpected values to the methods? > - I would expect a larger number of tests overall when the feature is mer= ged/completed. > - If these are indeed magic methods they need "__" prefixes, so consider = the names > =C2=A0 __getter and __setter > - I'd suggest biting the github bullet and creating your own PHP fork wit= h your > =C2=A0 patches. =C2=A0People will be able to test and you might get more = feedback. > > -- > Email: christopher.jones@oracle.com > Tel: =C2=A0+1 650 506 8630 > Blog: =C2=A0http://blogs.oracle.com/opal/ > > -- > PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visi= t: http://www.php.net/unsub.php > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > --=20 Regards, Shein Alexey