Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18475 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 76198 invoked by uid 1010); 26 Aug 2005 14:04:26 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 76183 invoked from network); 26 Aug 2005 14:04:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Aug 2005 14:04:26 -0000 X-Host-Fingerprint: 80.74.107.235 mail.zend.com Linux 2.5 (sometimes 2.4) (4) Received: from ([80.74.107.235:50795] helo=mail.zend.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id A0/D4-28235-8612F034 for ; Fri, 26 Aug 2005 10:04:25 -0400 Received: (qmail 23132 invoked from network); 26 Aug 2005 14:04:19 -0000 Received: from localhost (HELO ANDI-NOTEBOOK.zend.com) (127.0.0.1) by localhost with SMTP; 26 Aug 2005 14:04:19 -0000 Message-ID: <6.2.3.4.2.20050826070231.04b2faf0@localhost> X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 Date: Fri, 26 Aug 2005 07:03:56 -0700 To: Derick Rethans Cc: Frederik Holljen , PHP Developers Mailing List In-Reply-To: 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"; format=flowed Subject: Re: [PHP-DEV] Property Overloading RFC From: andi@zend.com (Andi Gutmans) I don't think __call/__get/__set should be resolving visibility. Maybe that's the difference. It's main purpose is to allow exposing a dynamic public interface. I understand exactly where he was going with this, and I just don't think PHP is the right place to do it. Andi At 02:55 AM 8/26/2005, Derick Rethans wrote: >On Thu, 25 Aug 2005, Andi Gutmans 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. > >I'm just arguing that the current way that setters and getters are >implemented is broken. Instead of keeping a broken behavior I would like >to see it fixed. > > > 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. > >It has more to do with problems with encapsulation and visibility. >Frederik made a nice summary of that, he will reply here: > > >Derick > >-- >Derick Rethans >http://derickrethans.nl | http://ez.no | http://xdebug.org