Re:Post-Architecture: Premature Abstraction Is the Root of A...
by mjevans on Friday July 19, 2024 @03:43AM
(#41002994)
Go's first class support for typed return tuples and Interfaces is a lovely replacement for inheritance (E.G. an Interface of type blah supports this signature). They function as an API contract, if a given class implements the requirements of the Interface, it can be cast to and used as that anywhere which accepts that interface.
[ Parent
| on HN ]
There are no comments on this comment yet.