News for hackers. Stuff that matters.
Re:PHP introduces "goto" by raffi on Tuesday June 09, 2009 @03:52PM (#649817)
I've thought of adding goto to Sleep. Have you ever looked at the code in the Linux kernel? It's full of gotos. They use goto's to make sure functions have one exit point and to cleanly deal with errors in one spot.
Re:PHP introduces "goto" by paulgb on Tuesday June 09, 2009 @03:59PM (#649844)
Kernel hackers know presumably what they're doing and use goto only when they have a good reason. Can the same be said of PHP programmers?

I'm all for the "don't protect programmers from themselves" philosophy, until I'm the guy who has to use or maintain the code.

Re:PHP introduces "goto" by ars on Tuesday June 09, 2009 @04:38PM (#649935)
Not having goto's is not going to help you in the slightest from bad programmers.
Re:PHP introduces "goto" by zach on Tuesday June 09, 2009 @06:33PM (#650132)
I disagree. Goto is the Comic Sans of keywords, a tool which may be used tastefully but ends up far more commonly abused to horrible effect.