Julia provides a very powerful macro system that lets include generated code in the body of your program. They are executed at compile time and enable you to operate on the source code's Abstract Syntax Tree (AST).
Macros and generated functions
Getting ready
Macros and generated functions are a built-in language functionality, and hence no installation is required. However, in this recipe, we will be also measuring the code performance. For this purpose, the BenchmarkTools.jl package will be used. In order to install it press the ] key to start the Julia package manager and type:
(v1.0) pkg> add BenchmarkTools
In the GitHub repository for this recipe, you will find the commands.txt file that contains the...