syrak·il y a 6 ans·discuss> It's not clear to me that it has any use at all if you don't have higher-order functions.The very origin of defunctionalization is to emulate higher-order functions in a language without them.https://en.wikipedia.org/wiki/Defunctionalization> defunctionalization refers to a compile-time transformation which eliminates higher-order functions, replacing them by a single first-order apply function.
The very origin of defunctionalization is to emulate higher-order functions in a language without them.
https://en.wikipedia.org/wiki/Defunctionalization
> defunctionalization refers to a compile-time transformation which eliminates higher-order functions, replacing them by a single first-order apply function.