Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:65093 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7719 invoked from network); 22 Jan 2013 19:41:31 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 22 Jan 2013 19:41:31 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.180 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.217.180 mail-lb0-f180.google.com Received: from [209.85.217.180] ([209.85.217.180:60545] helo=mail-lb0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 99/40-04241-86BEEF05 for ; Tue, 22 Jan 2013 14:41:30 -0500 Received: by mail-lb0-f180.google.com with SMTP id q12so489461lbc.11 for ; Tue, 22 Jan 2013 11:41:26 -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=7DP0j/ggKQBIGjGWcQ9WkD1MNKE+HSBithuz/TiZh5A=; b=v7NBNj9jVNxr7b68DIurzprnduNgwNwNIQt8jBDYTOshe5rACjZJMocDT1e2PJ1xFo RZrxBdIs0HhvRICGxCTOtbVdhyBW42yYOBJOyI4BLSLIXzzz3gonZsKj26rvUK3OuOGO 6c53AsYWHpm+YabdPL224z7y+e4qOJuDN4guzjhbLbhRwKwxJMSv2u/arvOAcMnsogcF 9vUijASIFkkPgxEzVsaPOGjytgDTRSSN+tHebGJR6z2MEL9c7zzAFHEp0r82t/xiJKRO jACkJFTA4kXgbYinoPClkeUh/Zu/PE1oIA0UHMJaTTi/ogRvKkLhHgO95cRJ1klVAuj9 nxAg== MIME-Version: 1.0 X-Received: by 10.112.10.200 with SMTP id k8mr9758164lbb.73.1358883685940; Tue, 22 Jan 2013 11:41:25 -0800 (PST) Received: by 10.112.138.131 with HTTP; Tue, 22 Jan 2013 11:41:25 -0800 (PST) In-Reply-To: <50FECA4E.6080408@lerdorf.com> References: <50F840F4.7080704@zerocue.com> <50FE7579.1010409@zerocue.com> <50FECA4E.6080408@lerdorf.com> Date: Tue, 22 Jan 2013 20:41:25 +0100 Message-ID: To: Rasmus Lerdorf Cc: Clint Priest , PHP Developers Mailing List Content-Type: multipart/alternative; boundary=bcaec54ee290643e5c04d3e5c3b2 Subject: Re: [PHP-DEV] [VOTE] Property Accessors for 5.5 From: nikita.ppv@gmail.com (Nikita Popov) --bcaec54ee290643e5c04d3e5c3b2 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Jan 22, 2013 at 6:20 PM, Rasmus Lerdorf wrote: > The simple explanation from me is that the ROI isn't there on this one. > It adds a lot of code complexity for very little return. Yes, it saves a > couple of lines of boilerplate code for a few people, but the cost is > high in terms of ongoing maintenance and potential issues for opcode > caches as well. If you look at the split in voting you will notice it is > pretty much split along the lines of the people who have to maintain > this code vs. the people who would like a shiny new feature. > I did a bit of testing with APC today and here is what I came up with: https://gist.github.com/4597660 It adds the logic for copying the accessor functions in my_copy_property_info*. This seemed to do the trick in my testing, but I don't really know APC, so I can't judge whether it might require further changes. Thanks, Nikita --bcaec54ee290643e5c04d3e5c3b2--