Re: ReflectionClass::getMethod()
| From: | Derick Rethans | Date: | Fri, 24 Dec 2004 12:00:44 +0000 |
| Subject: | Re: ReflectionClass::getMethod() | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-14200@lists.php.net to get a copy of this message | ||
On Fri, 24 Dec 2004, Sebastian Bergmann wrote:
> Andi Gutmans wrote:
> > Sebastian, throwing an exception is relatively slow and cumbersome and
> > sucks if you want to do something like a Delegation model and run
> > through objects and check if a method can be called. Having exceptions
> > thrown each time the object doesn't have the method is crazy.
>
> I do not think so (that it is crazy), for what it's worth.
I think it doesn't make sense if there is no method to actually check if
it's there. Now you start throwing exeptions without having a way to
avoid it. THAT is crazy.
Derick
--
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org