Re:Ten years without Elixir
by 1_player on Thursday January 14, 2021 @09:19AM
(#25776498)
Agreed. My approach is to use macros written by someone smarter than me (Ecto), but refrain from writing macros myself. Regular functions very often are enough.
Macros are definitely abused, but there are some cases, fewer than you think, where they make code easier to follow.
Macros are definitely abused, but there are some cases, fewer than you think, where they make code easier to follow.