Skip to content

Change protocol examples#256

Merged
ukutaht merged 1 commit intoelixirkoans:masterfrom
jechol:enhance/protocol
Nov 9, 2020
Merged

Change protocol examples#256
ukutaht merged 1 commit intoelixirkoans:masterfrom
jechol:enhance/protocol

Conversation

@jechol
Copy link
Copy Markdown
Contributor

@jechol jechol commented Sep 23, 2020

I think when struct S implements protocol P, we can say S is P or S has trait of P.
For example, List implements Enumerable and we can say List is Enumerable.

In current example, Musician implements School, but we can't say Musician is School.
I think better abstraction where Musician, Dancer belongs to and Baker doesn't is Artist.

@jechol jechol changed the title Change procotol examples Change protocol examples Sep 23, 2020
@iamvery
Copy link
Copy Markdown
Collaborator

iamvery commented Oct 29, 2020

I don't have a strong opinion about this. @ukutaht @felipesere do you have any thoughts?

@ukutaht
Copy link
Copy Markdown
Collaborator

ukutaht commented Oct 29, 2020

I think the PR does make the example easier to understand. I think we should merge it

@jechol
Copy link
Copy Markdown
Contributor Author

jechol commented Nov 8, 2020

@ukutaht Could you approve this?

@ukutaht ukutaht merged commit 62c81d0 into elixirkoans:master Nov 9, 2020
@ukutaht
Copy link
Copy Markdown
Collaborator

ukutaht commented Nov 9, 2020

@jechol merged!

w0rd-driven pushed a commit to w0rd-driven/elixir-koans that referenced this pull request Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants