Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37382 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21063 invoked from network); 30 Apr 2008 18:29:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Apr 2008 18:29:17 -0000 Authentication-Results: pb1.pair.com header.from=robert@interjinn.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=robert@interjinn.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain interjinn.com from 66.11.173.122 cause and error) X-PHP-List-Original-Sender: robert@interjinn.com X-Host-Fingerprint: 66.11.173.122 unknown Received: from [66.11.173.122] ([66.11.173.122:60473] helo=interjinn.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 24/41-13507-C7AB8184 for ; Wed, 30 Apr 2008 14:29:16 -0400 Received: from [192.168.1.3] (blobule.suds [192.168.1.3]) by interjinn.com (Postfix) with ESMTP id AFF7211FB6D; Wed, 30 Apr 2008 14:29:11 -0400 (EDT) To: Nathan Nobbe Cc: internals@lists.php.net In-Reply-To: <7dd2dc0b0804300921y4d87fa25k3530cb864367aa24@mail.gmail.com> References: <7dd2dc0b0804300921y4d87fa25k3530cb864367aa24@mail.gmail.com> Content-Type: text/plain Organization: InterJinn Date: Wed, 30 Apr 2008 14:29:13 -0400 Message-ID: <1209580153.6963.106.camel@blobule> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] why interfaces ? From: robert@interjinn.com (Robert Cummings) On Wed, 2008-04-30 at 10:21 -0600, Nathan Nobbe wrote: > all, > > in recent weeks there has been a lot of arguing about what interfaces are, > arent (on php-general and now on the internals list as well) etc. etc. > > i am quite curious, why interfaces were added to the language in the first > place. note, i am not criticizing them, i am overjoyed that the language > has them, however i am curious about the history. is this something php > borrowed from java? does it have anything to do with 'entirely virtual > classes' in c++ ? i think that the history behind the addition of > interfaces to php, would shed a lot of light on their intended purpose for > use by php developers. The answer is in the archives. I haven't gone back to review them, but I remember vaguely they were originally going with multiple inheritance before they switched directions after much discussion and took the interface route instead. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP