4 ms·
Also yes Protocols can be used to type check quacks, bringing it more inline with the Go examples in the blog. However my point is more from a SOLID perspectiv
by sirsinsalot 1y ago
Also yes Protocols can be used to type check quacks, bringing it more inline with the Go examples in the blog.
However my point is more from a SOLID perspective duck typing and minimal dependency interfaces sort of achieve similar ends... Minimal dependency and assumption by calling code.