2 ms·
"What's most interesting is that Julia has Lispy macros in an infix language. I'm not quite sure how they do it" Yeah, Julia-macrology seems to be a funny mixt
by sampo 14y ago
"What's most interesting is that Julia has Lispy macros in an infix language. I'm not quite sure how they do it"
Yeah, Julia-macrology seems to be a funny mixture of operating with infix and prefix representations. You write the macro in infix (in Julia), and the generated output code in infix (or I guess you can generate Expr-type data structures directly), but if you want to inspect the piece of code that was the input to the macro, you need to understand its internal representation as an abstract syntax tree (lisp-like representation), and inspect that.
http://docs.julialang.org/en/latest/manual/metaprogramming/ http://docs.julialang.org/en/latest/manual/metaprogramming/