4 ms·
> Structural typing is nothing like duck typing. People > saying that don't know what they are talking about. Structural typing is at least facially simil
by redbad 13y ago
> Structural typing is nothing like duck typing. People
> saying that don't know what they are talking about.
Structural typing is at least facially similar to duck typing. People contesting that are being pedants.
- masklinn 13y agoStructural typing is facially similar to duck typing when anonymous types (interfaces and structures) are allowed, as in OCaml. I don't believe either exists in Go.
- burntsushi 13y agoThey are absolutely allowed. [1] You can have anonymous structs in a similar fashion. [1] - http://play.golang.org/p/tHYLcdbPSS http://play.golang.org/p/tHYLcdbPSS