Re: IException

From: Date: Tue, 17 Feb 2004 09:45:58 +0000
Subject: Re: IException
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-7909@lists.php.net to get a copy of this message
>> >Again, I don't see any complexity arising from this: The average user >> >would simply use "catch (IException $e)" instead of "catch (Exception That looks weird. Why IException? Ah, because it's an interface. And what's an interface? And why should I know about interfaces if I just want to catch damn exceptions and that's all? Simple stuff should be simple. If you want to catch exception, you shouldn't go and learn how interfaces work in PHP and what are the inheritance rules and ton of other stuff. You should just do catch(Exception $e) and that's it. -- Stanislav Malyshev, Zend Products Engineer stas@zend.com http://www.zend.com/ +972-3-6139665 ext.109

« previous php.internals (#7909) next »