Re: GOTO operator
| From: | Jason Garber | Date: | Thu, 29 Jul 2004 23:04:49 +0000 |
| Subject: | Re: GOTO operator | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-11639@lists.php.net to get a copy of this message | ||
Hello,
After thinking about it for a bit, I'm convinced. If goto can be
implemented so that it is fast, and does not adversely affect other
parts of PHP, by all means, do it.
Andrey, you've been very clear why you would not use it, but why do
you want me not to use it? I can think of quite a few times when it
would have made my code much cleaner.
As far as shooting yourself in the foot, how about:
mysql_query("SELECT x,y,z FROM t WHERE id=" . $_GET['id']);
or
include($_GET['header_file']);
or
shell_exec('somecommand ' . $_POST['param']);
There are PLENTY of way's to shoot yourself in the foot with any
language. If joe shoots himself in his foot, does that mean that
I should not be allowed to shoot at all?
+1
--
Best regards,
Jason mailto:jason@ionzoft.com