What are the benefits of prototypal inheritance over classical?

Posted by Pierreten on Stack Overflow See other posts from Stack Overflow or by Pierreten
Published on 2010-05-10T07:22:04Z Indexed on 2010/05/10 7:34 UTC
Read the original article Hit count: 270

Filed under:
|
|

So I finally stopped dragging my feet all these years and decided to learn JavaScript "properly". One of the most head-scratching elements of the languages design is it's implementation of inheritance. Having experience in Ruby, I was really happy to see closures and dynamic typing; but for the life of me can't figure out what benefits are to be had from object instances using other instances for inheritance.

© Stack Overflow or respective owner

Related posts about language-design

Related posts about JavaScript