News for hackers. Stuff that matters.
Re:The security hole in sudo by lubutu on Wednesday May 23, 2012 @11:17AM (#4013444)
I agree. In Go break is the default, and there's an explicit 'fallthrough' statement.
Re:The security hole in sudo by joshAg on Wednesday May 23, 2012 @05:18PM (#4015357)
Go was not designed to be portable assembler. break directly maps to a jump statement in assembler. fallthrough does not. Since C is designed to be portable asembler, it makes sense to include break as a keyword instead of a fallthrough keyword (and break would still be needed anyway for for loops and while loops).