Understanding Javascript OOP
killdream.github.com
killdream.github.com
There's a cool project, Harmonizr (https://github.com/jdiamond/harmonizr) which transpiles ES6 to ES5, which you can leverage to start using classes, modules, arrow syntax, etc. now. Demo: http://jdiamond.github.com/harmonizr/demo/demo.html
“There is more to OOP, Horatio, than is dreamt of in your philosophy.”
I like prototype-based languages and really wish that NewtonScript had a little better syntax. On the other hand, I have never been fond of Javascript and don't know why.
http://en.wikipedia.org/wiki/NewtonScript and http://waltersmith.us/wp-content/uploads/2005/12/OOPSLA95.pd...
... with a misleading title since it's about "Prototypical inheritance".
When Anders was discussing the new TypeScript release, he was mentioning how it more clearly mimicked the ES6 specification. Looking at some of the examples posted by joubert, you can see the similarities.
TypeScript transpiles down to ES5 much like Harmonizr does as well.
Very interesting stuff.