3 ms·
Switching from writing classes in other languages to using the JS prototype made writing object oriented code more fun and much faster! The prototype way was a
by z3t4 12y ago
Switching from writing classes in other languages to using the JS prototype made writing object oriented code more fun and much faster! The prototype way was a step forward. I think it's very weird that JavaScript is now planning to introduce classes, and that you guys are so exited about it.
- d13 12y agoThe new `class` syntax is just sugar on the ordinary prototypal way in which JS developers have created "classes" for ages (functions which return themselves as objects.) It just makes the code you have to write a little prettier to look at.