3 ms·
Elixir does not try to do away with them. They are covered in the official guide: https://elixir-lang.org/getting-started/typespecs-and-behaviours.html#behaviou
by emerongi 6y ago
Elixir does not try to do away with them. They are covered in the official guide: https://elixir-lang.org/getting-started/typespecs-and-behaviours.html#behaviours https://elixir-lang.org/getting-started/typespecs-and-behavi...
As soon as I add @behaviour to a module, I get IDE autocomplete and compiler warnings if a function has not been implemented.
I do agree that I have not seen a lot of behaviour use in the wild, even in cases where it's clear that they would be beneficial. Elixir developers seem to have some blindspots.
- searchableguy 6y ago> As soon as I add @behaviour to a module, I get IDE autocomplete and compiler warnings if a function has not been implemented. It is exactly what I was looking for. Thanks for mentioning it.