Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37317 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 36237 invoked from network); 30 Apr 2008 00:10:34 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Apr 2008 00:10:34 -0000 Authentication-Results: pb1.pair.com smtp.mail=jeremy@omegavortex.net; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=jeremy@omegavortex.net; sender-id=unknown Received-SPF: error (pb1.pair.com: domain omegavortex.net from 207.210.105.196 cause and error) X-PHP-List-Original-Sender: jeremy@omegavortex.net X-Host-Fingerprint: 207.210.105.196 unknown Linux 2.5 (sometimes 2.4) (4) Received: from [207.210.105.196] ([207.210.105.196:47033] helo=vps.omegavortex.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 33/11-28930-8F8B7184 for ; Tue, 29 Apr 2008 20:10:33 -0400 Received: from host196-37.dissent.birch.net ([69.53.196.37] helo=[192.168.2.4]) by vps.omegavortex.net with esmtpa (Exim 4.68) (envelope-from ) id 1Jqztr-0000qT-U6; Tue, 29 Apr 2008 20:10:23 -0400 Message-ID: <4817B8E6.8070300@omegavortex.net> Date: Tue, 29 Apr 2008 19:10:14 -0500 Organization: Omega Vortex Corporation User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: Robert Cummings CC: "John Carter -X (johncart - PolicyApp Ltd at Cisco)" , internals@lists.php.net References: <48169695.9040803@omegavortex.net> <339714303.20080429114607@marcus-boerger.de> <27A086AB-E111-49C1-ABBD-28FB6E1677BD@procata.com> <48175A65.4070301@zend.com> <1209512914.7057.296.camel@blobule> In-Reply-To: <1209512914.7057.296.camel@blobule> Content-Type: multipart/alternative; boundary="------------060309050708000600050107" X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - vps.omegavortex.net X-AntiAbuse: Original Domain - lists.php.net X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - omegavortex.net X-Source: X-Source-Args: X-Source-Dir: Subject: Re: [PHP-DEV] Class Properties in Interfaces? From: jeremy@omegavortex.net (Jeremy Privett) --------------060309050708000600050107 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Robert Cummings wrote: > On Tue, 2008-04-29 at 20:04 +0200, John Carter -X (johncart - PolicyApp > Ltd at Cisco) wrote: > >> I think there's been two responses to this query: >> >> 1. We can't have properties in interfaces because interfaces don't have >> properties. I would say this is tautological and doesn't add anything. >> >> 2. Why would you need to? Getters and setters work. >> >> So I suppose to answer my question for myself, there's no real technical >> reason for not having properties in interfaces, but getters and setters >> work just fine and no-one (including me) really misses them. >> > > I have to agree. Enforcing existence of a property is just as much part > of an interface as enforcing the existence of a method. Why go down the > clutzy getter and setter method route when properties were meant to be > accessed. Why should code be made slower? Methods are at least an order > of magnitude slower than direct property access. > > Cheers, > Rob. > I'm glad someone out there agrees with me. -- Jeremy Privett C.E.O. & C.S.A. Omega Vortex Corporation http://www.omegavortex.net Please note: This message has been sent with information that could be confidential and meant only for the intended recipient. If you are not the intended recipient, please delete all copies and inform us of the error as soon as possible. Thank you for your cooperation. --------------060309050708000600050107--