4 ms·
> "ECMAScript is an object-oriented programming language, having concept of an object as its core abstraction." I'm curious as to whether or not this definitio
by johnhenry 9y ago
> "ECMAScript is an object-oriented programming language, having concept of an object as its core abstraction."
I'm curious as to whether or not this definition makes sense to other developers? ECMAScript does have a built-in "Object" data type, though I wouldn't say that this is it's "core abstraction". Further, firmly object-oriented languages, such as Java, seem to lack this abstraction. Perhaps I'm missing something in the definition?
- FLUX-YOU 9y agoHuh? All objects in Java implicitly derive from java.lang.Object. Same for .NET and System.Object. The exceptions being value-types and structs.
- johnhenry 9y agoSorry, as a Javascript developer, my understanding of the Objects in Java is crude at best, so I may not have made a lot of sense here.
- ridiculous_fish 9y agoThe core notion is little-"o" objects, which are a collection of properties, which in turn are a collection of attributes. There is also the big-"O" Object (sometimes called the "Object object," hah). This is a place to hang useful functions and also serves as the default prototype.
- abiox 9y ago"object oriented" can mean a wide variety of things. java isn't necessarily more object-oriented than other options. generally, i think when people say "oo", they're really just referring to nominal subtyping; probably due to the language's ubiquity (as well as c++ and c#). this nominal subtyping gives rise to the hierarchical taxonomies of object-classes that are a quintessential characteristic of java, c# and friends.
- mvaliente2001 9y agoIt's a Prototype Oriented Language, a language where the inheritance chains follows objects. Although, in all fairness, Object Oriented programming should be called Class Oriented, and Prototype Oriented should be called OOP.
- Roboprog 9y ago... and the Smalltalk gangs squares off to rumble with the Simula67 gang :-) (meanwhile, Scheming away in the background ...)