News for hackers. Stuff that matters.
Re:Simple Ways of Reducing the Cognitive Load in Code by elcritch on Tuesday June 28, 2016 @11:02AM (#11994298)
> They aren't the same as nested functions, in particular because you can't invoke a naked block multiple times,

Sure you can, just use `goto`! It's fantastic for code reuse. ;p

On a more serious note, gcc and clang both support block functions now. Pretty sure they aren't full closures but they can be handy in these situations.

There are no comments on this comment yet.