3 ms·
I think Java and C++ et. al. get it wrong by overloading the . operator. On one hand it means "gimme this field of that object", and on the other hand it's "fin
by jpr 16y ago
I think Java and C++ et. al. get it wrong by overloading the . operator. On one hand it means "gimme this field of that object", and on the other hand it's "find this function in the method table of the class". These are completely different things. And it all goes downhill from this mistake.
- emmett 16y agoJavascript avoids this by not having a method table separate from the fields of the object. Is that better?