3 ms·
I don't have the sources right now, but I once watched (not attended!) a presentation that talked about how JS was initially intended to be a language more like
by kroltan 6y ago
I don't have the sources right now, but I once watched (not attended!) a presentation that talked about how JS was initially intended to be a language more like Lisp or Smalltalk, but was changed into an OO language to appease the heavy marketing at the time.
- kazinator 6y agoThe duo of Lisp and Smalltalk basically define what OO means. Javascript simulates some of the aspects of OOP in an ad hoc way by turning every object into a hash table so that properties can be tacked onto it. It's what you implement if it's Wednesday, and the boss asks for a some sort of working OOP system by Friday.
- kroltan 6y agoYou're right I was half asleep when I wrote the previous comment, I am very sorry. I meant a C(Java?)-like language. Which I am aware has nothing to do with OO, just syntax style.