Re: GOTO operator

From: Date: Sat, 31 Jul 2004 12:45:37 +0000
Subject: Re: GOTO operator
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to internals+get-11766@lists.php.net to get a copy of this message
On Fri, 30 Jul 2004, Jeff Moore wrote: > > 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. Exceptions are an OO thing, and it makes NO sense to use them in procedural code. Goto is a good thing here. Derick

« previous php.internals (#11766) next »