Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18460 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 8337 invoked by uid 1010); 26 Aug 2005 01:39:20 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 8322 invoked from network); 26 Aug 2005 01:39:20 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Aug 2005 01:39:20 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:44754] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 69/27-28235-7C27E034 for ; Thu, 25 Aug 2005 21:39:19 -0400 Received: (qmail 17915 invoked from network); 26 Aug 2005 01:39:13 -0000 Received: from localhost (HELO ANDI-NOTEBOOK.zend.com) (127.0.0.1) by localhost with SMTP; 26 Aug 2005 01:39:13 -0000 Message-ID: <6.2.3.4.2.20050825182507.064da170@localhost> X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 Date: Thu, 25 Aug 2005 18:39:08 -0700 To: Edin Kadribasic ,Derick Rethans Cc: Christian Schneider , PHP Developers Mailing List In-Reply-To: <430DC0DC.4060506@emini.dk> References: <430DBD80.6090804@cschneid.com> <430DC0DC.4060506@emini.dk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] Property Overloading RFC From: andi@zend.com (Andi Gutmans) At 06:00 AM 8/25/2005, Edin Kadribasic wrote: >Derick Rethans wrote: > > And how can you possibly argue that this more complex than all the other > > OO crap that people are suggesting here.... > >I belive that we should do our best to filter out this storm of OO >feature requests. People want to make PHP look like some other OO >languages for no good reason other that they're familiar with it or that >their CS teacher thought they were cool. I completely agree. This very much bloats the language syntax and would be mainly there for the sake of OO fanatics. Guys, seriously, this kind of stuff and a lot of the other OO proposals I've heard here lately are going to lead to PHP going down the drain. Derick, the fact that you say it's not worse than "other OO crap that people are suggesting here...." just means that it's also good to leave the other crap out of PHP. Sometimes I really wished people who really need this kind of crap go and download Python & Smalltalk, instead of killing PHP's benefits. There is no language that does everything, and I'd like to keep PHP good at what it does best. People who aren't content with PHP not being a master piece in object oriented really should look elsewhere. I'll be happy to hear back from them regarding development time, ease-of-use and training period for developers. I don't see why the __get/__set/__isset/__unset methods themselves can't check if the property exists and throw an exception if it doesn't. I always do that in all my examples... As far as documentation is concerned, you'll usually have a nice array in the beginning of the class declaration which is pretty verbose, if that's not good enough people can use phpDoc (or we can enhance phpDoc). If you strongly feel that something like _have_prop() is needed despite exceptions doing the job, it's something that could be considered but I'm not convinced it's needed. Andi