2 ms·
My point was: Yes, you can cram differently typed values into the same array, but this won't make sense unless all elements in the array share a common interfac
by tetha 17y ago
My point was:
Yes, you can cram differently typed values into the same array, but this won't make sense unless all elements in the array share a common interface to access them. If this is not the case, all the dynamicness is useless, because you cannot do anything with the elements inside the array.
And once I arrived at this important realization, all the discussion of 'yay, I am SO dynamic' kind of fell over, because a lot of things reverted to the same principle of interfaces and programming to interfaces.