Derick Rethans wrote:
On Mon, 8 Aug 2005, Andi Gutmans wrote:


As far as implementation is concerned, it definitely should wait for after PHP
5.1 and the patch should deal with the hard parts which are internal functions
and overloaded functions. Implementing this for user-functions is the easier
part. There might be some gotchas (as usual) with internal functions throwing
exceptions.


Yeah, but afaik all cases *should* use this function 'zend_verify_arg_type', if not, that needs to be fixed.


On a whole though, I do recommend to relax on the
"add-every-oo-feature-that-exists" to the PHP code base, because it'll lead to
PHP loosing its ease-of-use. The namespace proposal (which I haven't replied
to yet) is a prime example. I saw all sorts of Java-like stuff like private
classes which in my opinion would just over-complicate our model which already
has become quite rich. We should only add what we really think PHP users need,
and not stuff which is nice because it's OOpier. I do think that if we can get
it right, a basic namespace model would be useful, but it all depends wether
we can avoid the problems we had in the past *and* keep it simple!


Right, I definitely agree there.


P.S. - Derick, out of curiosity, what made you ask for an Exception? I thought
you don't use OOP, and definitely not evil try/catch constructs? :)


I prefer not to comment on that :)

Derick


Probably better a catchable exception than uncatchable Fatal error :)

Andrey

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to