News for hackers. Stuff that matters.
Re:Embedding Python in Elixir, It's Fine by davidw on Tuesday February 25, 2025 @10:20AM (#43173003)
Coming from Erlang, I think macros are one of the things I'm ambivalent about in Elixir. There are a bunch of actual improvements besides just the syntax itself in Elixir, like string handling, but things like macros in Ecto ... not yet a fan of that.
Re:Embedding Python in Elixir, It's Fine by notpublic on Tuesday February 25, 2025 @10:51AM (#43173459)
> ..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

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/elixi...

Re:Embedding Python in Elixir, It's Fine by conradfr on Tuesday February 25, 2025 @06:05PM (#43178697)
In practice you don't really need to write macros if you don't make libraries.