Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18481 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 9475 invoked by uid 1010); 26 Aug 2005 18:34:25 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 9460 invoked from network); 26 Aug 2005 18:34:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Aug 2005 18:34:25 -0000 X-Host-Fingerprint: 81.169.182.136 ajaxatwork.net Linux 2.4/2.6 Received: from ([81.169.182.136:56334] helo=strato.aixcept.de) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 0D/04-28235-0B06F034 for ; Fri, 26 Aug 2005 14:34:24 -0400 Received: from [192.168.1.3] (dsl-082-083-227-004.arcor-ip.net [82.83.227.4]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by strato.aixcept.de (Postfix) with ESMTP id 41DB635C392; Fri, 26 Aug 2005 20:55:12 +0200 (CEST) Date: Fri, 26 Aug 2005 20:32:30 +0200 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <273979752.20050826203230@marcus-boerger.de> To: Andi Gutmans Cc: Edin Kadribasic , Derick Rethans , Christian Schneider , PHP Developers Mailing List In-Reply-To: <6.2.3.4.2.20050825182507.064da170@localhost> References: <430DBD80.6090804@cschneid.com> <430DC0DC.4060506@emini.dk> <6.2.3.4.2.20050825182507.064da170@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Property Overloading RFC From: helly@php.net (Marcus Boerger) Hello Andi, Friday, August 26, 2005, 3:39:08 AM, you wrote: > 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... Interesting, How do you do that? There is no __isset or __unset. > 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 Best regards, Marcus