News for hackers. Stuff that matters.
Re:Linux Coding Style Guide: GOTOs not always considered har... by 16s on Tuesday August 23, 2011 @01:11PM (#2917380)
Young programmers hear that goto is bad and should never be used. They begin repeating this to others. Then the whole world thinks goto is bad, because 99% of devs say so.

Then an expert, highly-regarded dev shows code that has useful goto statements. And only 1% of coders understand that this is perfectly acceptable. They know that goto is not evil (all the time) and is even very useful in certain cases.

Re:Linux Coding Style Guide: GOTOs not always considered har... by 5hoom on Tuesday August 23, 2011 @02:35PM (#2917782)
I think just the tiniest bit of experience with assembly would chase away a lot of unwarranted fears about goto.

At that level it's all goto so you have to use them. And if you don't want your program to become a spaghetti nightmare you have to use them wisely.

When using anything higher level you can & should use 'if', 'for', 'while', etc. but it's not like the world implodes if you use a goto in your code.