rose-lang/rose

Scoping

Closed this issue · 0 comments

We should rewrite the implementation of fn in the TypeScript frontend so that instead of building up a computation graph and then recursively walking it to emit Rose IR, we have scoping constructs like fn and vec set a global variable to point to a context, which functions like add/sub/mul/div use to directly emit locals and instructions to an under-construction function.