in reply to Re^4: "strong typing" is potentially ambiguous
in thread (Completely OT) - Hero(i)n programming language on Slashdot
A type is a set of values ...
I'm glad you brought this up; it gives me a chance to take the flame war in a different direction. ;-)
Under some ped^Wsemantic systems at least, what you've given, above, is a definition of "class", whereas "type" is defined in terms of behavior, not representation. If two objects can "do the same things", then they're the same type. (Usually this means having the same defined behavioral interfaces, irrespective of actual implementation. Sometimes the definition is made more strict: to "do the same thing", the objects must have idential implementations.) Of course, OO language vendors (who shall not be named, *cough*), prefer to use the terms "type" and "class" interchangeably, it seems.
Stand by for updates as I'm forced to recant...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: "strong typing" is potentially ambiguous
by dragonchild (Archbishop) on Dec 15, 2004 at 16:40 UTC |