Skip to content

Comment on Elixir v0.13.0 released, hex.pm and ElixirConf announcedparent

Comments

Erlang/Elixir noob here. Are you saying that protocols are a useful thing to learn in a) Erlang, b) Elixir or c) both?

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".

AboutSource Built by g1lg1l

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