# GOTO operator

- Thread: https://externals.io/message/11644
- Original archive: https://news-web.php.net/php.internals/11644
- Started by Frank M. Kromann on 2004-07-29T23:09:27+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #11644 — Frank M. Kromann — 2004-07-29T23:09:27+00:00

URL: https://externals.io/message/11644#11644

[snip]

> The average Joe may not need goto in some case but he will find that it
simplifies
> his job (but making code clumsy, something what he does not realize).
> It is not because I don't like the power of goto, I would like not to be
given in the
> hands of the newbie.
> 
> andrey
> 
PHP has many advanced features that would make a newbie (or any other
level of skills) produce bad code, but yet we have these functions and
features in the language.

Most code can be written without GOTO, and I belive that it will, but some
cases simply gets more messy by not having the option of using GOTO's.

Implementing the feature would allow programmers at any level to use it or
leave it. I like options!

- Frank

---

## #11647 — Ilia Alshanetsky — 2004-07-29T23:28:16+00:00

URL: https://externals.io/message/11644#11647 · In reply to: #11646

> Ok, I surrender. Go for it :)
> I will pray and let God save me from ever maintaining spaghetti goto code
> :)

Andrey,

Well, you already have a list of goto enabled languages to avoid, what's one 
more? :-)

Ilia

---

## #11646 — Andrey Hristov — 2004-07-30T01:13:27+00:00

URL: https://externals.io/message/11644#11646 · In reply to: #11644

Frank M. Kromann wrote:
> [snip]
> 
> 
> > […]
> 
> simplifies
> 
> > […]
> 
> given in the
> 
> > […]
> 
> PHP has many advanced features that would make a newbie (or any other
> level of skills) produce bad code, but yet we have these functions and
> features in the language.
> 
> Most code can be written without GOTO, and I belive that it will, but some
> cases simply gets more messy by not having the option of using GOTO's.
> 
> Implementing the feature would allow programmers at any level to use it or
> leave it. I like options!
> 
> - Frank

Ok, I surrender. Go for it :)
I will pray and let God save me from ever maintaining spaghetti goto code :)

andrey

+0

---

## #11648 — Andrey Hristov — 2004-07-30T01:24:17+00:00

URL: https://externals.io/message/11644#11648 · In reply to: #11647

Ilia Alshanetsky wrote:
> 
> 
> > […]
> 
> 
> Andrey,
> 
> Well, you already have a list of goto enabled languages to avoid, what's one 
> more? :-)

What should I do then? Java? Please no! :-)

> Ilia
> 

andrey
zzzZzzzZZZZZzzz
