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

Consider allowing functions to be defined at the byte code level #31

Open
thelonious opened this issue Apr 3, 2014 · 0 comments
Open

Comments

@thelonious
Copy link
Contributor

Right now, functions are 'built' in the em parser and ema assemblers. We already have concepts like symbols and blocks that can be manipulated at the byte code level. However, we're missing support for defining parameter lists and default values. Now that object values are ordered dictionaries, we should be able to define those with objects. The byte code might look like:

{[ x 10 y 20 z undefined]}
{ <function-body-here> }
createFunction

This would result in a function-value on the stack which could then be assigned to a symbol

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