Re: GOTO operator
| From: | Paul G | Date: | Thu, 29 Jul 2004 10:19:48 +0000 |
| Subject: | Re: GOTO operator | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-11610@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: "Stefan Esser" <sesser@php.net>
To: <"Sara Golemon"@utopia.rusko.us>; <internals@lists.php.net>
Sent: Thursday, July 29, 2004 6:05 AM
Subject: Re: [PHP-DEV] GOTO operator
> Hi,
>
> > I wrote up a patch for implementing gotos in php scripts a couple months
ago
> > as an exercise in working with the Zend engine. I put it aside assuming
> > noone would actually want it, but Wez and Ilia convinced me to post it
for
> > consideration:
>
> I was really rolling on the floor when I saw this mail, because I faked
> up such a patch as a joke a few days ago.
>
> I love gotos. Try/Catch is goto for poor people ;)
>
> +2^17,3 from me
tongue out of cheek + my opinion doesn't count,
goto is *very* useful for error handling when you've got stuff to clean up
that's common between error conditions. absence of goto is a major
annoyance. i'd like to see it in 4.x as well, but i realize that ain't gonna
happen officially.
paul