Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic Functions #54

Open
6 tasks
L3tum opened this issue May 21, 2020 · 0 comments
Open
6 tasks

Generic Functions #54

L3tum opened this issue May 21, 2020 · 0 comments

Comments

@L3tum
Copy link
Owner

L3tum commented May 21, 2020

  • Support a special type parameter T
  • Collect generic functions by their canonical name
  • If no definition could be found for a function, search generic functions by the canonical name of the called function
  • If found, generate a new function in the AST with the generic type parameter replaced by the actual type and immediately walk the AST
  • Do not add the function to any list. Any further calls in the same module will find the already generated function. All other modules should generate them themself to avoid any dependency issues.
  • Generate call to that generated function
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

No branches or pull requests

1 participant