News for hackers. Stuff that matters.
Re:Google is developing programming techniques to simplify W... by RyanMcGreal on Friday March 30, 2012 @07:50AM (#3775480)
If you really want to program classical inheritance into Javascript, there are ways to do that today. Meanwhile, prototypal inheritance is already simple and powerful - so simple, perhaps, that programmers trained in classical inheritance tend to stumble on it.
Re:Google is developing programming techniques to simplify W... by judofyr on Friday March 30, 2012 @08:47AM (#3775663)
I agree that prototypal inheritance is simple and powerful; JavaScript's version of it on the other hand… By introducing constructors you get this weird mix between classical and prototypical which isn't elegant at all :(