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.
atteson
1
what would the difference be between this function and eval?
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Metaprogramming: create function which takes arguments (vector and expression) to evaluate | 1 | 471 | February 19, 2019 | |
| How to search the AST for specific types and functions? | 7 | 944 | December 25, 2018 | |
| Compiler optimization inside MetaProgramming? (precompile Expression) | 5 | 347 | March 17, 2023 | |
| Julia: compiling strings | 12 | 1060 | May 8, 2018 | |
| How to compile Expr to function? | 8 | 974 | May 22, 2017 |