Re:Go at SoundCloud
by jvm on Tuesday July 24, 2012 @11:20PM
(#4289200)
You don't count this as inheritance? Also, classes aren't required for OOP.
[ Parent
| on HN ]
Re:Go at SoundCloud
by JonnieCache on Wednesday July 25, 2012 @03:48AM
(#4289857)
I call that prototypical construction. The point is, it's hardly java.
Neither classes nor inheritance are necessary for OOP. A good read on this topic:
http://wcook.blogspot.de/2012/07/proposal-for-simplified-mod...
Btw, you can also do classes with JavaScript: http://mootools.net/docs/core/Class/Class
JavaScript's prototype-based OOP is a superset of class-based OOP.