|
|
|
|
|
by pmontra
1989 days ago
|
|
To add a data point: Ruby and Elixir developer here (and Python and JS). I never wrote a macro in Elixir. All that weird quote / unquote stuff is too complicated. I get the idea (code running at compile time) but the syntax is just unwelcoming. Furthermore macros tend to make code opaque and onboarding difficult. I could wake in terror if I dream of my coworkers implementing some new functionality by adding macros instead of functions. |
|
Macros are definitely abused, but there are some cases, fewer than you think, where they make code easier to follow.