
Macros and Busting Boilerplate with Robert Ellen - EMx 176
Elixir Mix
00:00
Elixir Def Macro Is a Function in kernel.exe
In Elixir, def macro is defined by def macro itself so this year there's some kind of totals all the way down there magic somehow that resolves itself. macros are not in fact functions they're something different and that they give it transforming the abstract syntax to you. You then have to be careful about what you pass in and collecting the correct thing out of it. Unquoting which is effectively a way of capturing the value passed in to a macroYeah I like to compare it to a string interpolation actually when I consider basically okay now I asked my call to the expression that's like the abstract syntax and now I'm interpolating into that the value like what kind of like swing interpolation
Play episode from 07:21
Transcript


