News for hackers. Stuff that matters.
Re:Interfaces Generally Belong with Users by laughingman2 on Saturday November 23, 2019 @10:23PM (#21618139)
I think allowing extensions on existing classes/structs can also solve this problem without having structural typing.

ie the client can create a new interface and explicitly implement it for existing classes/structs.

I think Swift and rust allows this.

There are no comments on this comment yet.