News for hackers. Stuff that matters.
Re:Relive: 50 years of C, the good, the bad and the ugly by enedil on Friday December 30, 2022 @12:10PM (#34187063)
Closure is not an anonymous function. It "encloses" variables that were in scope at the point of closure creation. Therefore function pointers cannot serve that purpose as is.
Re:Relive: 50 years of C, the good, the bad and the ugly by sn41 on Friday December 30, 2022 @12:30PM (#34187298)
I agree, I should have used anonymous function specifically instead of a closure (for example, Ruby/Smalltalk closures are blocks, not functions.) Thanks for the correction.