3 ms·
FWIW, duck-typing happens at runtime, what Go has is structural typing.
by voidlogic 11y ago
FWIW, duck-typing happens at runtime, what Go has is structural typing.
- stcredzero 11y agoI had no idea there was a formal definition of Duck Typing. Because if we merely "duck type" Duck Typing...if it looks and sounds like it...
- voidlogic 11y agohttps://en.wikipedia.org/wiki/Duck_typing#In_Go https://en.wikipedia.org/wiki/Duck_typing#In_Go