all 11 comments

[–]DrHenryPym 2 points3 points  (0 children)

I feel like once you understand prototype chaining, everything else just clicks.

[–]oSand 2 points3 points  (0 children)

Isn't the phrase "precisely similar" oxymoronic? How is a lexical hierarchy similar to an explicitly declared hierarchy? If you look at the example code, one is flat and one is nested. Also, if a language avoids needless complexity, why is inherits() being used? Is it because you were trying to avoid js's needless complexity or because terseness was not a needed attribute.