Re: GOTO operator
| From: | Zeev Suraski | Date: | Thu, 19 Aug 2004 07:31:38 +0000 |
| Subject: | Re: GOTO operator | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-12255@lists.php.net to get a copy of this message | ||
At 04:28 19/08/2004, Hartmut Holzgraefe wrote:
Sebastian Bergmann wrote: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' :) ZeevExceptions 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