The Artima Developer Community
Sponsored Link

PHP Buzz Forum
19 Oh how they fear the GOTO 13

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Alan Knowles

Posts: 390
Nickname: alank
Registered: Sep, 2004

Alan Knowles is Freelance Developer, works on PHP extensions and PEAR.
19 Oh how they fear the GOTO 13 Posted: Sep 14, 2004 6:56 PM
Reply to this message Reply

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 :)
Latest PHP Buzz Posts
Latest PHP Buzz Posts by Alan Knowles
Latest Posts From Smoking toooo much PHP

Advertisement
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.





View Extended Entry 13

Read: 19 Oh how they fear the GOTO 13

Topic: strpbrk - PHP Function Previous Topic   Next Topic Topic: PHP5: Must read PHP Article

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use