January 2020
Intermediate to advanced
532 pages
13h 31m
English
Given that the code is generated behind the scene, it may feel a little awkward when we cannot even see what the generated code will look like. How can we guarantee that the generated code is exactly what we expect after all those interpolations of variables?
Fortunately, there is a package called CodeTracking that can make debugging code generation easier. We will see how it works here.
From the previous section, we should have generated three functions: info!, warning!, and error!. As these are defined as generic functions, we can examine what methods are defined for each. Let's take error! as an example:

In this ...
Read now
Unlock full access