January 2020
Intermediate to advanced
532 pages
13h 31m
English
We have looked at creating expression objects in great detail. But how are they useful? Remember that an expression object is just an abstract syntax tree representation of a Julia program. At this point, we can ask the compiler to continue translating the expression into executable code and then run the program.
Expression objects can be evaluated by calling the eval function. Essentially, the Julia compiler will go through the rest of the compilation process and run the program. Now, let's start a fresh, new REPL and run the following code:

Clearly, it's just a simple assignment. We can see that the x variable is ...
Read now
Unlock full access