3 ms·
Duck typing generally refers exclusively to runtime type checking (i.e. dynamically-typed languages). What Go does is structural typing.
by djur 12y ago
Duck typing generally refers exclusively to runtime type checking (i.e. dynamically-typed languages). What Go does is structural typing.
- marvy 12y agoI disagree. C++ templates for instance are also duck-typed, but they act at compile time, not run time.