News for hackers. Stuff that matters.
Re:JavaScript Prototypes Made Easy by ufo on Saturday June 30, 2012 @02:23PM (#4182389)
It still could be much better designed though, compareed to othe rprototipical languages. Prototypes cannot be explicitly accessed or mutated, Object.create wasn't even part of the standard and the whole syntax with function constructors and having to set the prototype property is a very ugly hack.
Re:JavaScript Prototypes Made Easy by jfaucett on Saturday June 30, 2012 @02:38PM (#4182427)
I haven't used any other prototypical languages so I can't say how js compares... Can you give me the best prototypical language? - I'd like to check it out and see for myself. Still, as far as shimming up a clean cross browser API prototyping is extremely usefull.
Re:JavaScript Prototypes Made Easy by natrius on Saturday June 30, 2012 @04:32PM (#4182737)
I don't know much about this, but I've heard Self mentioned as the prototypical prototypical language many times.

http://en.wikipedia.org/wiki/Self_(programming_language)

Re:JavaScript Prototypes Made Easy by tikhonj on Saturday June 30, 2012 @05:18PM (#4182859)
It's the language where the idea came from originally. It's basically the Smalltalk of prototype-based OO :).

Here's a nice paper about it: http://ranger.uta.edu/~nystrom/courses/cse3302-fa10/selfPowe...