Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> I find most people who have gripes with JS prototypes are the ones who are used to classical inheritance.

Counterpoint: Scheme/Lisp/FP fans also don't tend to like it. Myself included.



Not really.

The idea of protypical object-systems is for a large part coming out of the Lisp community (and the Smalltalk community) and was used long before Self or Javascript.

Check the works of Henry Lieberman. The Self developers got the idea of 'delegation' from him. Object Lisp was a prototype-based object system used in LMI's Lisp Machine OS and in Macintosh Common Lisp (until it was replaced by the then developed standard CLOS). Various Lisp-based systems were developed in the 'knowledge representation' domain, which are supporting 'prototypes'. Apple for example developed a system called Sk8 in Macintosh Common Lisp, which made extensive use of prototypes for multimedia UI tool development.

With the advent of CLOS those were not used for typical OO programming in Lisp - not because people don't like it, but because another standard system was provided.


Oh, I think the idea is plenty neat.

It's how it's ended up in JS that I'm not a fan of.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: