Should every kernel class x provide support for (x new)
printString and (x new) hash
Klaus D. Witzel
klaus.witzel at cobss.com
Sun Jan 21 15:04:34 UTC 2007
On Sun, 21 Jan 2007 14:52:20 +0100, Ralph Johnson wrote:
> Collection is an abstract class, so you should never say "Collection
> new".
Well. People are coming from platforms on which abstract classes cannot be
instantiated.
I won't want to convince anybody but the first experience of a potential
convert should not be the debugger balking at completely unrelated things
(here: a subclass should have implemented #do: which the outermost
abstract class apparently requires from itself). That's just a
contradiction.
Funny, (Object new) doesn't have such problems. So, would you say that
about "Object new", too. I doubt, because almost every Smalltalk pro does
so ;-)
Again, just my CHF 0.05 :)
/Klaus
More information about the Squeak-dev
mailing list
|