3 ms·
I might be wrong, but doesn't this describe Google Go's interfaces as well? As in, the data structure of an object is independent of the functions/methods that
by BigZaphod 17y ago
I might be wrong, but doesn't this describe Google Go's interfaces as well? As in, the data structure of an object is independent of the functions/methods that can operate on the object. At least that's how I understand it right now (having never used it). And the type of a thing is related to the set of functions (matched by name) that are expected to work rather than the data's memory structure.
- tumult 17y agoSee also: Modules in OCaml Type classes in Haskell C++0x "concepts" (axed from the specification, but you can do generic programming with templates) And many more.