News for hackers. Stuff that matters.
Re:Block Comments Are a Bad Idea by phpnode on Wednesday October 11, 2017 @08:04AM (#15449023)
See also GOTO which is a wart 99.9% of the time but really useful for writing e.g. parsers.
Re:Block Comments Are a Bad Idea by dom0 on Wednesday October 11, 2017 @08:07AM (#15449049)
Error handling.
Re:Block Comments Are a Bad Idea by johannes1234321 on Wednesday October 11, 2017 @08:11AM (#15449087)
In most languages there are better way to do this than goto. Among them - extracting code into smaller functions (yes, state has to passed around) - exceptions (yeah yeah, hate them or love them, but if used in your environment it makes sense not to avoid them) - RAII pattern or handling cleanup, which allows simple return and "automatic" resource handling - etc.

True, in a language like C these don't apply necessarily and goto still has some use -

Re:Block Comments Are a Bad Idea by vortico on Wednesday October 11, 2017 @09:12PM (#15454931)
Parsers (or more generally state machines) and error handling are the two places I've seen that are acceptable. We've managed to complete the list. :)