Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
adamlett
on Sept 16, 2013
|
parent
|
context
|
favorite
| on:
Golang Object Oriented Design
JavaScript and Self don't have classes, but they do have inheritance.
masklinn
on Sept 16, 2013
[–]
Self has delegation. Conflating delegation and inheritance is no better than conflating embedding and inheritance.
munificent
on Sept 16, 2013
|
parent
[–]
Delegation seems pretty similar to inheritance to me. What am I missing?
masklinn
on Sept 16, 2013
|
root
|
parent
[–]
It doesn't set up is-a relationships and can be used for significantly more than differential inheritance (IIRC Self uses it for scoping).
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: