On Jul 30, 2004, at 4:33 PM, Edin Kadribasic wrote:
Jeff Moore wrote:
Where 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 ;)
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 lowest 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.
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php