Re: GOTO operator
| From: | Andi Gutmans | Date: | Fri, 30 Jul 2004 18:41:23 +0000 |
| Subject: | Re: GOTO operator | ||
| References: | 1 2 3 4 5 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-11699@lists.php.net to get a copy of this message | ||
Stefan,
There are like 4 examples in favor of goto. Of course they are more concrete than arguments that people can give against goto because they don't deal with WTF factors and abstract ideas such as coding style and structure.
And yes, bad coding can be done without goto but I think goto encourages it. Look at the sources of ab for example. That's a mixture of bad coding and goto's although five of those gotos are quite legit (error handling) and one sucks because it's pretty much implementing a loop.
Anyway, it's not as if I'll die if we add it (assuming that the implementation is done correctly) but I think that there's lots of excitement here about a feature, which will barely give much benefit and will possibly do more harm than good.
Andi