:wave: “quick question”, maybe someone in this cha...
# arrow
l
👋 “quick question”, maybe someone in this channel can help answer, how does Kotlin typeclass proposal compare to Swift’s protocols?
p
ping on a thread 😄
in swift, can you define the same protocol twice for the same struct? in different modules or files
we aim for v1 to have a single implementation defined at either the place where the typeclass is defined, or where the data type is defined
and no “orphan” instances. Same as Rust does it, too
if you want to extend a type that’s not defined in your code, you have to wrap it on another class
l
By “orphan”, you mean you won’t scan everything to discover it? (only data types or typeclass location)