elixir-lang / elixir-lang.github.com

Website for Elixir
elixir-lang.org
354 stars 822 forks source link

behaviour-protocol #1579

Closed achalagarwal closed 2 years ago

achalagarwal commented 2 years ago

Behaviours and Protocols both seem to work like Interfaces (in OOP based languages), so perhaps it might make sense to mention the differentiation aspect between the two.

Also, IIUC, behavior's seem more like an Interface and Protocols seem like Subclassing (because there can be a default implementation there).

josevalim commented 2 years ago

:green_heart: :blue_heart: :purple_heart: :yellow_heart: :heart: