News for hackers. Stuff that matters.
Re:PHP 5.3.0 Released by aceofspades19 on Tuesday June 30, 2009 @01:00PM (#681082)
How would gotos clean up your code?
Re:PHP 5.3.0 Released by pmjordan on Tuesday June 30, 2009 @04:38PM (#681536)
They can be extremely useful in error handling. They're also great as a substitute for labeled break statements if your language doesn't support them.
Re:PHP 5.3.0 Released by aceofspades19 on Wednesday July 01, 2009 @02:11PM (#683080)
What ever happened to exceptions, which were explicitly invented to handle errors
Re:PHP 5.3.0 Released by pmjordan on Wednesday July 01, 2009 @05:21PM (#683396)
Yeah. Turns out they're no silver bullet either. These days, my approach is pragmatic: use whatever works and produces the most readable code.