Objects Are Not Abstract Data Types
stuartsierra.com
Objects Are Not Abstract Data Types
1–10 of 15 posts
Re: Objects Are Not Abstract Data Types
#2Re: Objects Are Not Abstract Data Types
#3Re: Objects Are Not Abstract Data Types
#4Re: Objects Are Not Abstract Data Types
#5Re: Objects Are Not Abstract Data Types
#6Re: Objects Are Not Abstract Data Types
#7Re: Objects Are Not Abstract Data Types
#8Re: Objects Are Not Abstract Data Types
#9my understanding is an object is a particular piece of memory, structured according to a class which may be seen as the abstract data type for that particular piece of data. As far as I understand the JVM, the compiler doesn't replicate function bodies for every instance of a class. I think a more appropriate title to this article would be... "protocols and datatypes in clojure", of course I wouldn't have read the ar…
Re: Objects Are Not Abstract Data Types
#10I 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.
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.