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

Include function definitions #51

Open
zenna opened this issue Aug 2, 2015 · 0 comments
Open

Include function definitions #51

zenna opened this issue Aug 2, 2015 · 0 comments
Milestone

Comments

@zenna
Copy link
Owner

zenna commented Aug 2, 2015

An AST should support function definitions.

This allows more compact definitions of code, better potential for symbolic reasoning, and also allows the potential of recursive functions.

It's not trivial because:

  1. We have to somehow extract the function definition
  2. Where should these function definitions "live"? In the definition of a particular function? For instance if we say some Y = myf(uniform(0,1)), where should the ast of myf be within Y?
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