Re: Re: Labeled Breaks (not the G-word)
| From: | Wez Furlong | Date: | Sun, 27 Nov 2005 16:34:01 +0000 |
| Subject: | Re: Re: Labeled Breaks (not the G-word) | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-20661@lists.php.net to get a copy of this message | ||
Agreed; I use this style of coding a lot.
I'd prefer "goto" but can deal with it being called "jump".
--Wez.
On 11/27/05, Ilia Alshanetsky <ilia@prohost.org> wrote:
> Zeev Suraski wrote:
> > 1. A forward-jumping construct only, to avoid giving users too much
> > ammo to shoot themselves in the foot with spaghetti coding.
>
> One of the major uses of "jump" is the ability to "retry on error" by
> jumping backwards inside the code. Given that the limit of the
> functionality is completely superficial, there are no engine reasons for
> it, I'd much prefer we did not impose it.
>
> Ilia
>
>