This post originated from an RSS feed registered with PHP Buzz
by Alan Knowles.
Original Post: 19 Oh how they fear the GOTO 13
Feed Title: Smoking toooo much PHP
Feed URL: http://www.akbkhome.com/blog.php/RSS.xml
Feed Description: More than just a blog :)
574
It's kind of fun watching the reactions to the GOTO proposal for PHP, most negative reactions appear to be comming from people who have not actually read the code, kind of like a knee jerk reaction to flamebait.
Sara's Patch introduces localized GOTO's, eg. only within the current function / method scope. (although theoretically you can jump around within the global scope, you cant jump to it from inside a function/method.)
So if you read and understand the historical reasoning against GOTO's you quickly realize that GOTO's only really cause spagetti code when used wildy in really large blocks of code.
The reality is that as most programmers know, large methods and functions often are either an indication that the codes not that good anyway (eg. it should have been broken up into smaller components), so the addition of GOTO's is not going to make a pile of shit smell much worse..
While I dont think the original joke about adding it and not documenting it will fly, I do hope that it is modified to prevent usage in the global scope.