Hacker News new | ask | show | jobs
by scribu 4435 days ago
Erlang/Elixir noob here. Are you saying that protocols are a useful thing to learn in a) Erlang, b) Elixir or c) both?
2 comments

Protocols (and macros) are the real differences in Elixir that you don't have in Erlang.

The presence of protocols in Elixir enable many really cool features and designs that you wouldn't be able to do easily in Erlang.

Elixir has them built-in. They are basically an interface. A protocol says "this object implements this interface".