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

Macros/functions/templates #3

Open
tcr opened this issue Nov 8, 2016 · 0 comments
Open

Macros/functions/templates #3

tcr opened this issue Nov 8, 2016 · 0 comments

Comments

@tcr
Copy link
Owner

tcr commented Nov 8, 2016

Codegen is a useful feature in any language, and also an obvious footgun.

  1. Extract macros into a language-level feature that allows templates to intersperse AST, FSM transitions, data, and more into code. This is the most flexible and hardest to prototype.
  2. Allow us to yield to a function, where the function executes and can terminate, but is expanded into FSM generation. This is a more structured approach to the above, but fits a narrow usecase.
  3. Require macros be expanded into their own entities and interfaced with. This probably doesn't fit all usecases either.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant