Skip to content

Elixir Behaviour vs Protocol #113

Open
@SimonLab

Description

@SimonLab

What are the differences between behaviours and protocols

An example of behaviour are adapters: https://hexdocs.pm/ecto/2.2.8/Ecto.Adapter.html#content
image

And an example of a protocol is https://hexdocs.pm/ecto/Ecto.Queryable.html
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionA question needs to be answered before progress can be made on this issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions