News for hackers. Stuff that matters.
Re:Dartium: Google’s New Dart Programming Language Comes to ... by spankalee on Thursday February 16, 2012 @05:10PM (#3600915)
Why is it better to have prototypal inheritance? What real problem does it solve?
[deleted]
Re:Dartium: Google’s New Dart Programming Language Comes to ... by spankalee on Thursday February 16, 2012 @05:43PM (#3601052)
Sorry, I don't think you understand how OOP works. In classical inheritance, each object only contains its data and a reference to its class. The class owns the methods - they are not copied to every instance. Most uses of prototypal inheritance follow a similar pattern.
Re:Dartium: Google’s New Dart Programming Language Comes to ... by firefoxman1 on Thursday February 16, 2012 @06:13PM (#3601169)
I'm sorry about that. I misread an article that described the differences. I'm just going to delete that last comment...It's embarrassing.