Sebastian Bergmann wrote:Exceptions are not an OOP feature per-se. They are a means for out-of- band error signalling. (Of course they use objects for that which could be regarded as a turn-off by non-OOP-eople :-)
they can also be a turn-off for performance anxious people
I haven't benchmarked it, but I don't see a reason for exceptions to be significantly slower than GOTO, assuming the exception is caught in the same scope as it was thrown. Since GOTO wouldn't/mustn't work in any other case anyway, I don't think performance is an issue at all. You still might be right thanks to this human feature called 'perception' :)
Zeev
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php