Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63366 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39951 invoked from network); 12 Oct 2012 08:49:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Oct 2012 08:49:25 -0000 Authentication-Results: pb1.pair.com header.from=lester@lsces.co.uk; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=lester@lsces.co.uk; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain lsces.co.uk from 213.123.26.185 cause and error) X-PHP-List-Original-Sender: lester@lsces.co.uk X-Host-Fingerprint: 213.123.26.185 c2beaomr07.btconnect.com Received: from [213.123.26.185] ([213.123.26.185:60905] helo=mail.btconnect.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F7/56-06472-299D7705 for ; Fri, 12 Oct 2012 04:49:24 -0400 Received: from host81-138-11-136.in-addr.btopenworld.com (EHLO _10.0.0.5_) ([81.138.11.136]) by c2beaomr07.btconnect.com with ESMTP id JIU51515; Fri, 12 Oct 2012 09:49:20 +0100 (BST) Message-ID: <5077D98A.2080808@lsces.co.uk> Date: Fri, 12 Oct 2012 09:49:14 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120826 Firefox/15.0 SeaMonkey/2.12 MIME-Version: 1.0 To: "internals@lists.php.net" References: <9570D903A3BECE4092E924C2985CE485612B53E4@MBX202.domain.local> <5077D340.90905@lsces.co.uk> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mirapoint-IP-Reputation: reputation=Fair-1, source=Queried, refid=tid=0001.0A0B0301.5077D98F.0158, actions=tag X-Junkmail-Premium-Raw: score=7/50, refid=2.7.2:2012.10.12.83918:17:7.944, ip=81.138.11.136, rules=__MOZILLA_MSGID, __HAS_MSGID, __SANE_MSGID, __HAS_FROM, __USER_AGENT, __MIME_VERSION, __TO_MALFORMED_2, __TO_NO_NAME, __BOUNCE_CHALLENGE_SUBJ, __BOUNCE_NDR_SUBJ_EXEMPT, __CT, __CT_TEXT_PLAIN, __CTE, __ANY_URI, __URI_NO_WWW, __CP_URI_IN_BODY, BODY_ENDS_IN_URL, BODYTEXTP_SIZE_3000_LESS, BODY_SIZE_2000_2999, __MIME_TEXT_ONLY, RDNS_GENERIC_POOLED, HTML_00_01, HTML_00_10, BODY_SIZE_5000_LESS, RDNS_SUSP_GENERIC, RDNS_SUSP, BODY_SIZE_7000_LESS X-Junkmail-Status: score=10/50, host=c2beaomr07.btconnect.com X-Junkmail-Signature-Raw: score=unknown, refid=str=0001.0A0B0203.5077D990.002F:SCFSTAT14830815,ss=1,re=-4.000,fgs=0, ip=0.0.0.0, so=2011-07-25 19:15:43, dmn=2011-05-27 18:58:46, mode=multiengine X-Junkmail-IWF: false Subject: Re: [PHP-DEV] [PHP-DEV [RFC] Property Accessors v1.2 From: lester@lsces.co.uk (Lester Caine) Pierre Joye wrote: > hi Lester, > > On Fri, Oct 12, 2012 at 10:22 AM, Lester Caine wrote: >> Clint Priest wrote: >>> >>> Alright, here is the updated RFC as per discussions for the last few days: >>> >>> https://wiki.php.net/rfc/propertygetsetsyntax-as-implemented >>> >>> If you could read it over, make sure I have all of your concerns correctly >>> addressed and we can leave this open for the two week waiting period while I >>> make the final code changes. >> >> >> Now I remember why I did not like this wholesale ... >> >> There is no easy way to identify that >> $time->Hours = 12; is doing something other than a bog standard 'store 12 in >> $Hours' while a simple $time->Hours(12); immediately makes it obvious that >> there IS some processing involved. And period = $time->Hours(); flags that >> the result is calculated from some other value in the class. >> >> So IS this new layer of magic mirrors really necessary at all? Is it adding >> to the complexity at the expense of the inherent readability of the code >> later on? >> >> I suppose the argument is that 'people expect it' but that is only because >> they are not yet used to the better way of working that IS PHP ... just >> because some people expect cryptic code should that be any reason to weigh >> PHP down further with it? >> > > Please keep the discussion sane without repeating the same arguments > over and over again. This RFC is about adding a new cleaner > getter/setter than the __get/__set we have now, which forces us to do > some more useless work for basic needs. The complexity you are talking > about already exist and you already mentioned this argument already, > we got it. Sorry , but if the complexity was any good, why does it need to be changed? Simply scrap the whole lot and get back to a more sane solution. I'm sorry but this is just the whole problem with PHP 'development' ... people push half developed ideas in, and then it's used as the basis for moving things further forward, when a step back MAY be the best way forward! Has ANY of the new stuff that has been added to PHP recently ACTUALLY been fully finished? In many cases you are now discussion how to make them work better because what exists has problems that will be fixed later :( And we have to live with the consequences in the real world. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk