2 ms·
I don't follow how "these things are macros under the covers" translates to "i need to keep more stuff in my head" And the argument that "the community discour
by rozap 10y ago
I don't follow how "these things are macros under the covers" translates to "i need to keep more stuff in my head"
And the argument that "the community discourages macros" isn't particularly compelling, but for whatever reason it has worked well. People seem to use them rarely, and when they are used they're reasonably straight forward. I've been using elixir for a couple years now, and I haven't run into many cases where macros ended up confusing me as a reader.
On the contrary, I stumble over the more esoteric "discouraged by the community" features in scala literally every day.
Relying on the community to exercise restraint with the powerful parts of the language is a huge gamble, but it has worked well in the elixir community.