Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> "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?



Huh? All objects in Java implicitly derive from java.lang.Object. Same for .NET and System.Object. The exceptions being value-types and structs.


Sorry, 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.


It'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.


... and the Smalltalk gangs squares off to rumble with the Simula67 gang :-)

(meanwhile, Scheming away in the background ...)


"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.


The 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: