8 ms·
> ..but things like macros in Ecto.... Well, The whole language itself is built on macros. The following series of articles certainly helped me stop worrying a
by notpublic 2y ago
> ..but things like macros in Ecto....
Well, The whole language itself is built on macros. The following series of articles certainly helped me stop worrying and love the macros..
https://www.theerlangelist.com/article/macros_1 https://www.theerlangelist.com/article/macros_1
Some interesting insights from the article:
"Elixir itself is heavily powered by macros. Many constructs, such as defmodule, def, if, unless, and even defmacro[1] are actually macros...."
[1] https://github.com/elixir-lang/elixir/blob/v1.18.2/lib/elixir/lib/kernel.ex#L5285 https://github.com/elixir-lang/elixir/blob/v1.18.2/lib/elixi...