Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
masklinn
on Sept 16, 2013
|
parent
|
context
|
favorite
| on:
Golang Object Oriented Design
> Is there any advantage to using OO in a language that doesn't have classes or inheritance?
Like Self or javascript?
adamlett
on Sept 16, 2013
[–]
JavaScript and Self don't have classes, but they do have inheritance.
masklinn
on Sept 16, 2013
|
parent
[–]
Self has delegation. Conflating delegation and inheritance is no better than conflating embedding and inheritance.
munificent
on Sept 16, 2013
|
root
|
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:
Like Self or javascript?