Re: cvs: php-src / NEWS /ext/xsl xsltprocessor.c
| From: | Andi Gutmans | Date: | Mon, 22 Dec 2003 18:52:37 +0000 |
| Subject: | Re: cvs: php-src / NEWS /ext/xsl xsltprocessor.c | ||
| References: | 1 2 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-25384@lists.php.net to get a copy of this message | ||
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