Category:
Programming Tags:
languages,
php
PHP introduces the goto command in its soon to be released version 5.3.
http://www.php.net/manual/en/control-structures.goto.php
<?php
goto a;
echo 'Foo';
a:
echo 'Bar';
?>
It also comes with the warning:
It is not allowed to jump into a loop or switch statement. A fatal error is issued in such cases.
PHP is on track to be the worst widely used language ever.
Related posts:
- PHP Sucks: No stable sort
- Hot code swapping for servers not written in Erlang
- Debunking the Erlang and Haskell hype for servers
- Why Aren’t Functional Languages like Haskell and Ocaml Popular?
- Host Your Own Email: Easy Disposable Addresses
Posted Tuesday, June 9th, 2009 at 5:24 pm. Filed under
Programming. You can follow comments here through the
RSS 2.0 feed. You can
leave a response, or
trackback from your own site.
lol @ your last line.
> PHP is on track to be the worst widely used language ever.
No. With GOTO implemented, it just makes PHP on-par with BASIC
Sweet, I can finally port my all the TI-basic calculator games I wrote in high school to the interwebs.
I´ll try to install this version of PHP.
thanks
__________
Sofi Hedz
Grupo Mayan Friends
Why do programmers hate goto again?
Because they discovered structured programming in the 60s!…and it can lead to really messy(spagetti) code.
I don’t really see why people are making such a big deal out of this, though. C’s had the keyword since forever and I don’t see anyone complaining about that. Besides, you don’t have to use the feature if you don’t want to.