Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63364 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36723 invoked from network); 12 Oct 2012 08:37:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Oct 2012 08:37:20 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.170 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.210.170 mail-ia0-f170.google.com Received: from [209.85.210.170] ([209.85.210.170:51399] helo=mail-ia0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7F/95-06472-EB6D7705 for ; Fri, 12 Oct 2012 04:37:18 -0400 Received: by mail-ia0-f170.google.com with SMTP id e16so2154093iaa.29 for ; Fri, 12 Oct 2012 01:37:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Al3hgAXZ//Keas0KUBzebA9aGgtmGLKRLJtpwKuhLu0=; b=NiQUopvyI20t9MuIWJDNtxowp0Uf9l11VNLPToZwB5ZhJ0K7Bz1+R6B6fxyJo5BJFa A5rmuqzgmri7EJetQwvKbzMdQBSk9gnM/JHwyuqj1fKFCmX/jwvyXdtJWGT/5oXegZL9 Ftkqi7jBP6YAG+VGyNMyr27dgN2kf1yzzd0NathOQgnZAzXNMgmdkbP3j2Dj5b0sj5of 6oqmPZOx7cTubVOOTkHyMNHQfpQYSFZVM+VCDXPp+BLMj12nAiqjHx2jUVooZfBZFdEN nOnbQXzdP5mgyntHQlrPkpr99hOHsRIcPVtONh6iADCCXwGMWC+lV92IobOe2TWeGAp+ 2yzw== MIME-Version: 1.0 Received: by 10.50.91.195 with SMTP id cg3mr1471166igb.57.1350031035708; Fri, 12 Oct 2012 01:37:15 -0700 (PDT) Received: by 10.64.33.143 with HTTP; Fri, 12 Oct 2012 01:37:15 -0700 (PDT) In-Reply-To: <5077D340.90905@lsces.co.uk> References: <9570D903A3BECE4092E924C2985CE485612B53E4@MBX202.domain.local> <5077D340.90905@lsces.co.uk> Date: Fri, 12 Oct 2012 10:37:15 +0200 Message-ID: To: Lester Caine Cc: "internals@lists.php.net" Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] [PHP-DEV [RFC] Property Accessors v1.2 From: pierre.php@gmail.com (Pierre Joye) 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. Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org