Skip to content

Comment on A Week with Elixirparent

Comments

Its all about the macros, man. If you are familiar with Erlang and gen_server, then perhaps looking at the examples in the readme of Exactor (https://github.com/sasa1977/exactor) will be enlightening to you. It presents a very straightforward DSL for defining gen_servers plus function wrappers in a very small amount of code with little boilerplate and repetition. There are other great libraries that make excellent use of macros, I just think this one makes this point really well.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.