3 ms·
But isn't that just what you were suggesting in the GP post in order to get rid of a layer of indirection?
by KMag 5y ago
But isn't that just what you were suggesting in the GP post in order to get rid of a layer of indirection?
- xxs 5y agoPerhaps, most of the time I have not created a general use data structure - just highly specialized ones. Extending would allow no references/indirection but it's rather ugly and it has to provide another function to instantiate (I'd consider reflection, i.e. Class.newInstance() not to be a good way to handle the case).