Skip to content

Conversation

@NeilKleistGao
Copy link
Member

  • Create flag :defunc for defunctionalization
  • Collect functions and generate corresponding function classes with the call function
  • Substitute all first-class functions with corresponding class instantiation
  • Invoke the call function for each first-class function

@LPTK
Copy link
Contributor

LPTK commented Feb 1, 2026

Cool, but this is not defunctionalization, it's just compiling first class functions to classes. (That's fine, it's what we need, but the terminology is wrong and should be changed.)

@NeilKleistGao NeilKleistGao changed the title Add prototype of defunctionalization Compile first-class functions to classes Feb 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants