The Passionate Craftsman

Ruby, PHP, MySql, Software engineering and more.

Thursday, 25 June 2009

GOTO in PHP

I am sad to announce the PHP 5.3 has a new goto statement. From a paper of Dijkstra (1968) the goto statement has been considered harmful and so many year after PHP introduce a goto statement. I think that the spaghetti coders will be happy of using goto in their programs. But what about the credibility of PHP in the enterprise. Zend is claiming that PHP is a good technology for the enterprise environment, well, I do not think so.

Why do not why start to use GWBasic for web programming?


References:

http://www.procata.com/blog/archives/2004/07/29/goto-in-php/

http://uk.php.net/manual/en/control-structures.goto.php

Edsger Dijkstra (March 1968). "Go To Statement Considered Harmful" (PDF). Communications of the ACM 11 (3): 147–148. doi:10.1145/362929.362947. http://www.cs.utexas.edu/users/EWD/ewd02xx/EWD215.PDF. "The unbridled use of the go to statement has as an immediate consequence that it becomes terribly hard to find a meaningful set of coordinates in which to describe the process progress. ... The go to statement as it stands is just too primitive, it is too much an invitation to make a mess of one's program.".

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home