4 ms·
The construction of interface values is a very shallow mean and essentially irrelevant to the need for interfaces. Whereas the runtime resolution of operations
by masklinn 27d ago
The construction of interface values is a very shallow mean and essentially irrelevant to the need for interfaces.
Whereas the runtime resolution of operations performed through an interface (dynamic dispatch) is the primary purpose of and use care for interfaces, with the dynamic resolution of wrapped types (type erasure / downcasts / type switches) is the secondary one.