Hacker News new | ask | show | jobs
by SteveGregory 2615 days ago
This is not totally true. It’s not 100% syntax. Elixir has one additional and widely used feature: macros.

In Elixir, as in Lisp, you can transform your code as a data structure into new code. This is importantly used in Ecto, the de-facto object data mapper in Elixir. It’s also used in Absinthe, a library from the posted link for making GraphQL APIs.

2 comments

Protocols are also an important feature. `IO.inspect`, `Enum`, etc. are very nice additions.
In general the standard library organization is superb and well laid out. It’s the only language I don’t have to consistently lookup "how do I do X with string", or “Y with a list".
Yeah, this is fair. I was mentally lumping certain language features under "syntax" but that's not really accurate.