3 ms·
> various tradeoffs(fast compile? fast runtime? binary size? Pick 1 or 2) Interfaces are boxed already, so you've paid the price without having type safety. Si
by ernst_klim 7y ago
> various tradeoffs(fast compile? fast runtime? binary size? Pick 1 or 2)
Interfaces are boxed already, so you've paid the price without having type safety. Simply treat a polymorphic function as if it accepted interface{}.