| ▲ | sirsinsalot 2 days 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. | ||