Re:PHP introduces "goto"
by wooby on Tuesday June 09, 2009 @04:03PM
(#649856)
It's not negative in that, people can program using whatever language they want using whatever language constructs they want.
But for PHP, which is mostly for web development, I would think using exceptions is a much peer-friendlier way of handling what you'd probably be using goto for in a web app.
If you're writing state machines or parsers, PHP probably isn't the way to go anyway. But hey - whatever floats your boat.
But for PHP, which is mostly for web development, I would think using exceptions is a much peer-friendlier way of handling what you'd probably be using goto for in a web app.
If you're writing state machines or parsers, PHP probably isn't the way to go anyway. But hey - whatever floats your boat.