Oct. 28, 2009
9:14 p.m.
Em 28/10/2009 17:52, Lukas Renggli <renggli@gmail.com> escreveu:
What would be your isAbstract be useful for? To know whether it is wise to instantiate a class or not
That would be a pure guess then. Presumably you will still have to look at the implementation, at the documentation, at its users or study the coding conventions of the project to know for sure what to do with the thing.
Yes. Thinking aloud: if we want to insure a class shall not be instantiated, shouldn't we put an error in #new of that class?