goto considered harmful – oh, wait, it’s just PHP

By July 21, 2009Technical

Hot on the heels of PHP 5.3’s snazzy new namespaces, here comes goto. I kid you not, see for yourself:

http://au2.php.net/goto

Even Java, which we have little fondness for here, does not give you goto. This has to be one of the worst misfeatures yet in 5.3 (as opposed to the native MySQL driver, which only causes customers to ask for stupid things, like installing pre-alpha code on their production webserver).

In case it weren’t clear enough, they go so far as to use an XKCD strip that highlights how bad an idea this is. I suspect this is some kind of sick joke…