Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active January 29, 2017 14:56
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 deque-blog/84313c71028c68327a613f4a7a2dfe32 to your computer and use it in GitHub Desktop.
Save deque-blog/84313c71028c68327a613f4a7a2dfe32 to your computer and use it in GitHub Desktop.
int eval_2(env const& env, expression const& e)
{
auto reduced = partial_eval(env, e);
if (auto* i = get_as_cst(reduced.get()))return *i;
throw_missing_variables(dependencies(reduced));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment