Re:If goto statements are bad why does linux src have more t...
by zzzcpan on Tuesday December 16, 2014 @10:36PM
(#8760953)
Breaking from nested loops with goto is also cleaner and simpler. Which is actually one of the reasons some higher level languages even have a goto statement.
[ Parent
| on HN ]
Re:If goto statements are bad why does linux src have more t...
by _delirium on Tuesday December 16, 2014 @10:57PM
(#8761007)
For that use-case in particular, a "labeled break" is an alternative that some languages use (like java). I somewhat semantically prefer it if given the choice (name the loop being broken, vs. naming the end-point to jump to), though that preference isn't strong.