Actually those are a 'modern/dynamic' aspect of Java (being pseudo-closures).
And a very bad one indeed. Not everything modern is good.
dicuss on objective, rational arguments than on pure personal preference.
I gave more than enough rational arguments. If you don't accept them as being rational then there's nothing I can do about it.
Well, I suppose exceptions were added to the language for good reasons
And I suppose they were added because they are fashionable. Luckily multiple inheritance and operator overloading are already out of fashion again, otherwise they would have been added to PHP5 as well.
you simply do $foo=new Foo(); $foo->doThis(); $foo->doThat();
... and your code will miserably fail in all but the naive case. For example when an exception happens it could be that doThis() was called but doThat() wasn't. That leads to problems big time. And yes, I have real worlds experience with this.
Exceptions were added to be able to deal with error situations at the appropriate place (i.e. mostly for c) reasons).
I recognize the goal but question the means.
So it seems that you dislike exceptions because they don't solve problems they were not designed to solve for. Maybe your point is also that, with
No, I dislike them because they create more problems than they solve.
- Chris
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php