Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65140 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 74380 invoked from network); 24 Jan 2013 02:36:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 24 Jan 2013 02:36:04 -0000 Authentication-Results: pb1.pair.com smtp.mail=arraypad@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=arraypad@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.181 as permitted sender) X-PHP-List-Original-Sender: arraypad@gmail.com X-Host-Fingerprint: 209.85.214.181 mail-ob0-f181.google.com Received: from [209.85.214.181] ([209.85.214.181:63321] helo=mail-ob0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E6/F0-65404-31E90015 for ; Wed, 23 Jan 2013 21:36:04 -0500 Received: by mail-ob0-f181.google.com with SMTP id wc18so3722747obb.26 for ; Wed, 23 Jan 2013 18:36:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=bcjMkGJI94M4Jvr/NXoPsUv+RDYIYbxKjrFJ7KSJeTg=; b=voaUJb73usHIWP1X7D+ELtx/pT6Zu/kWysZdmsYJeRd4nUwKmH2R0M4w5LG5lDacyT wx0V7hsPo2vAWC8QUh4zB+NYNSXZiJWJqiys8bOTz5dmDmVVvPtWWKLWhC1zQUqUQQts WxzJKcLGjDgbBzN5keMm+nNarzqrUJFU8aTdBnVNT2irLFEeGUwyYa4N53KXsAXlHCfx TWWElThA9LPm5jbxlFZdQOeFCHbGcfrbicQ+fV0LG3M3XKOnIwgj8wBAqvoa6awv4bWg SsHW7/KczABRkxtYGfbIT/HxG5Kur05+Vk4W+EAdw4070d0ojRA9R3G6W+aFD+eeB87L Tb8w== MIME-Version: 1.0 X-Received: by 10.60.172.6 with SMTP id ay6mr310904oec.10.1358994961083; Wed, 23 Jan 2013 18:36:01 -0800 (PST) Received: by 10.76.33.166 with HTTP; Wed, 23 Jan 2013 18:36:00 -0800 (PST) In-Reply-To: <510065B8.7040608@zerocue.com> References: <510038C9.5000900@mrclay.org> <510065B8.7040608@zerocue.com> Date: Thu, 24 Jan 2013 02:36:00 +0000 Message-ID: To: Clint Priest Cc: Levi Morrison , PHP Developers Mailing List Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] C# properties vs. accessors RFC From: arraypad@gmail.com (Arpad Ray) On Wed, Jan 23, 2013 at 10:35 PM, Clint Priest wrote: > On 1/23/2013 3:17 PM, Levi Morrison wrote: >> Clint: I'm sorry that you spent all that time without hearing feedback >> from a lot of the "No" voters. Had they been participating all along >> perhaps it could have been avoided. We'll never know. > > I appreciate that, I'm hearing through the grapevine that some of the "no" > voters haven't even looked at the patch. > Hi, I voted "no" and I haven't looked at the patch, because my interest in it doesn't extend that far. I simply don't like the idea - it adds nothing to the language which can't already reasonably be done, and for what it does, I find the code harder to follow. I'd personally much rather have $foo->setBar(42); than $foo->bar = 42; doing something magic, even if the accessor would save a few lines of code. Even if I agreed with the idea, I think the "show stopper" of the "parent::$foo" issue is still present. Forcing people to use reflection to get a parent property is an absurd (albeit nifty) workaround. People complain about the lack of consistency in PHP enough already. I also think that in the RFC, it's a bit disingenuous to only mention this limitation in a comment on the 38th line of a code example Regards, Arpad