4 ms·
Erlang/Elixir noob here. Are you saying that protocols are a useful thing to learn in a) Erlang, b) Elixir or c) both?
by scribu 12y ago
Erlang/Elixir noob here. Are you saying that protocols are a useful thing to learn in a) Erlang, b) Elixir or c) both?
- gargantuan 12y agoElixir has them built-in. They are basically an interface. A protocol says "this object implements this interface".
- phamilton 12y agoProtocols (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.