Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
adastra22
11 months ago
|
parent
|
context
|
favorite
| on:
Be careful with Go struct embedding
Ok I don’t think anyone disagrees with that. But there are
two
embedded structs, both with a URL field.
noisy_boy
11 months ago
[–]
But the level of nesting isn't the same; only one of them has a direct URL field.
masfuerte
11 months ago
|
parent
[–]
You would get the same result if both URL fields were nested one level deeper. Being directly nested isn't the point.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: