|
|
|
|
|
by syrak
2289 days ago
|
|
> 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. |
|
For a general audience, linking the first instance of the string "defunctionalization" to this Wikipedia article would help people get up to speed. I'm not embarrassed to admit that I had never heard of it, and as a consequence I'm learning more from the Wiki than I learned from the Fine Article.