Metaprogramming in Julia
If you noticed the @ sign prefixing the various query parts in the preceding snippet, don't worry, it's not a typo. The @ prefix represents a macro—which introduces a very powerful programming technique called metaprogramming.
If you haven't heard about it before, it basically means that a program has the ability to read, analyse, and transform, and even modify itself while running. Some languages, called homoiconic, come with very powerful metaprogramming facilities. In homoiconic languages, the program itself is internally represented as a data structure that's available to the program and can be manipulated. Lisp is the prototypical homoiconic programming language, and for this reason, this kind of metaprogramming ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access