3 ms·
Actually, Go's fairly successful melding of static typing and duck-typed interfaces was a useful new trick. (Which doesn't completely excuse the "C++ tried tha
by rst 13y ago
Actually, Go's fairly successful melding of static typing and duck-typed interfaces was a useful new trick. (Which doesn't completely excuse the "C++ tried that and it didn't work for them so WE WON'T" foot-dragging on other matters...)
- voidlogic 13y ago>Go's fairly successful melding of static typing and duck-typed interfaces was a useful new trick For those that don't know this feature is called structural typing: http://en.wikipedia.org/wiki/Structural_type_system http://en.wikipedia.org/wiki/Structural_type_system Also, OCaml uses structural typing too.
- pjmlp 13y agoNo it was not, there are lots of languages that offer similar capabilities. The fact that mainstream developers don't know it, does not make it something that Go designers invented.
- eropple 13y agoOCaml already had structural typing. Scala does too.