News for hackers. Stuff that matters.
Re:Goto (2007) by GrumpyYoungMan on Thursday October 21, 2021 @09:23PM (#28952789)
There are a few decent examples given by the Linus kernel devs on a LKML thread where an unfortunate soul wandered in and suggested that they refactor to get rid of GOTOs: https://lkml.org/lkml/2003/1/12/126

> "I will prefer to hide one or more of the inner loops inside of a function call."

That risks the additional unnecessary overhead of a function call, which can be expensive in a loop, and not all compilers are as good at optimizing as they should be.

There are no comments on this comment yet.