#elixir #protocols #polymorphism
Using protocols to decouple implementation details
https://dev.to/jackmarchant/using-protocols-to-decouple-implementation-details-2im5
Using protocols to decouple implementation details
https://dev.to/jackmarchant/using-protocols-to-decouple-implementation-details-2im5
The DEV Community
Using Protocols to decouple implementation details
Protocols are a way to implement polymorphism in Elixir. There are many use-cases for it, but I'll go through a typical example of interacting with an external API that needs data in a specific structure.