Re:On Go
by masklinn on Sunday June 02, 2013 @11:28AM
(#5808838)
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.
[ Parent
| on HN ]
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.