News for hackers. Stuff that matters.
Re:Practical Go: Real-world advice for writing maintainable ... by Gibbon1 on Thursday February 21, 2019 @07:22PM (#19221969)
GNU C supports nested functions as an extension. I use them for the exact reasons you mention.
Re:Practical Go: Real-world advice for writing maintainable ... by favorited on Thursday February 21, 2019 @08:48PM (#19222420)
That extension results in executable stack memory, which is going to be a non-starter for many developers.
Re:Practical Go: Real-world advice for writing maintainable ... by Gibbon1 on Thursday February 28, 2019 @04:10AM (#19270070)
I believe that that only happens if you pass a nested function as a function pointer. Then gcc emits a trampoline.

If you just call it from the enclosing function it's fine.