You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Suppose X.a + X.b is some valid syntax (proxies). When it is turned into a lambda function, it becomes a valid function body and X is replaced by the argument.
This could be implemented inside lambd, and it can return the lambda function.
The text was updated successfully, but these errors were encountered:
Is it possible to fetch the AST node and put/eval it in the context as a function body? I mean instead of eval the source code but the AST node. Worried about that source code could be arbitrary.
Yes, after all you get the AST node first and get the source code from that. You can eval the node but the node contains the exact same code as the source, it's just as 'dangerous'.
Suppose
X.a + X.b
is some valid syntax (proxies). When it is turned into a lambda function, it becomes a valid function body andX
is replaced by the argument.This could be implemented inside
lambd
, and it can return the lambda function.The text was updated successfully, but these errors were encountered: