Compiling AST's

I not infrequently find myself building up AST’s representing a function definition and wishing to compile them. I end up using eval which seems a bit too non-specific for this purpose. I think it would be useful to have a function which took and AST and compile it.

what would the difference be between this function and eval?

1 Like