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.
[ Parent
| on HN ]
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.
Not having goto's is not going to help you in the slightest from bad programmers.