At 07:09 PM 12/22/2003 +0100, Derick Rethans wrote:
On Mon, 22 Dec 2003, Andi Gutmans wrote:

> In cases like this I think it's sexier to use do {} while(0). I also use
> goto but usually only in places where the former isn't suitable.

Why hide "goto" with "do {} while(0)"?  Using goto in this case is much
clearer IMO.

In my opinion, goto's tend to end up creating more obscure and unreadable code as a general rule. There are exceptions, as I mentioned, where goto is preferable.
Anyway, as I said, it's a matter of taste. There's no need to have a thread about it.


Andi

--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to