Hacker News
new
past
comments
ask
show
jobs
points
by
riobard
3 hours ago
|
comments
by
Zanfa
2 hours ago
|
[-]
But you can do equally horrible inheritance-y things with embedded structs.
reply
by
saturn_vk
25 minutes ago
|
parent
|
next
[-]
That’s composition, and it’s not really the same as inheritance
reply
by
EspressoGPT
35 minutes ago
|
parent
|
prev
|
next
[-]
That's right, embedded structs in Go are far less common than inheritance in Java though.
reply
by
metadat
2 hours ago
|
parent
|
prev
|
[-]
Yes, though it's non-idiomatic and in my experience, rare to encounter in the wild for anything you'd actually want to use.
reply