Re: GOTO operator
| From: | Jeff Moore | Date: | Fri, 30 Jul 2004 21:21:37 +0000 |
| Subject: | Re: GOTO operator | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-11736@lists.php.net to get a copy of this message | ||
On Jul 30, 2004, at 4:33 PM, Edin Kadribasic wrote:
Jeff Moore wrote:You might also have installed a standard error handler to raise some kinds of php errors as exceptions. In the worst case, you would have to add the if ... throws and you would be no worse off at the lowestWhere did the if statements go? do_stuff(), do_more_stuff(), and do_even_more_stuff() should throw exceptions rather than return boolean error indicators.Now imagine do_stuff() and friends were native PHP functions ;)
level. However, the caller of the enclosing pseudocode() function would not have to check for a boolean error code and so try/catch is still a net gain.