Re: Re: RC1, instanceof?

From: Date: Tue, 09 Aug 2005 19:55:05 +0000
Subject: Re: Re: RC1, instanceof?
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.internals 
Request: Send a blank email to internals+get-17735@lists.php.net to get a copy of this message
On Tue, 09 Aug 2005 12:44:59 -0700 Andi Gutmans <andi@zend.com> wrote: > But that's a good point. For the few frameworks that might > require such functionality they can use class_exists() or other > methods. That doesn't mean we should change instanceof for > mainstream usage which is 99.99%. Where do you get this percentage? Do a fgrep -rn is_a\( in PEAR for example. And please no stupid comments (not you Andi the evil other ;)). There is plenty of good reasons to do this check. > In all languages, frameworks do some trickier stuff. In Java they > often mess with the ClassLoader, in C++ they deal with DSOs. These are _compiled_, _linked_ languages. The simple fact that you cannot compile your sources explain the tricks. PHP is (should I say was?) mostly a dynamic and scripting language. > This kind of development > paradigm is not mainstream and as long as there's a way to > achieve it, then that's what's important. What is important to me is that "you" deprecate things without acceptable alternatives. > Even the people that mentioned it's soooo important. I bet that > if I look at their code, there's maybe 1 instance that actually > would need this (if at all). Wrong.... --Pierre

« previous php.internals (#17735) next »