Skip to content

Instantly share code, notes, and snippets.

@seanballais
Created May 13, 2018 13:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seanballais/631502c10f8ceebfb9c0a24d1cdcffc9 to your computer and use it in GitHub Desktop.
Save seanballais/631502c10f8ceebfb9c0a24d1cdcffc9 to your computer and use it in GitHub Desktop.
AST Creation Thing
if (some condition)
var x <- Reachable so I should create a binding to this variable x.
else <- Assume relatively unreachable.
var y <- Unreachable. But I can't be sure if it's reachable (prolly related to Halting Problem?).
So, I must create a binding so that the expressions that operate on y will run without an error and
to take into account cases that this branch is actually reached.
This seems like a waste of memory especially in large codebases.
var z <- Same as above with var y.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment