Re:On Go
by redbad on Sunday June 02, 2013 @08:14AM
(#5808217)
Structural typing is at least facially similar to duck typing. People contesting that are being pedants.
[ Parent
| on HN ]
Structural 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.
Re:On Go
by burntsushi on Sunday June 02, 2013 @01:00PM
(#5809207)
They are absolutely allowed. [1] You can have anonymous structs in a similar fashion.