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

fun decls have get transformed first #5

Open
icefapper opened this issue Sep 30, 2017 · 0 comments
Open

fun decls have get transformed first #5

icefapper opened this issue Sep 30, 2017 · 0 comments

Comments

@icefapper
Copy link
Member

icefapper commented Sep 30, 2017

currently they are transformed in source order, which necessitates using scope activation/deactivation jugglery -- not a big deal, but it is unnecessary complexity anyway; if funs are saved in a scope slot before transformation begins (that is, saving must occur while parsing), the transformer can simply start off by transforming declarations saved in the fns slot of every scope the transformer enters; in other words, anything hoisted in a scope should get transformed first; in other words, again, source elements should get transformed based on their semantic position rather than their source location; this will also make things easier when the notion of "active-after" indices are brought into use, helping shake/shave any modifications happening after the side-effect has been executed.

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