Y
Hacker News
new
|
ask
|
show
|
jobs
by
adastra22
314 days ago
What is the intuition for that?
1 comments
binary132
314 days ago
I think it’s something like:
“The general rule is that I may access the direct embeds of my type anonymously.”
link
adastra22
314 days ago
Ok I don’t think anyone disagrees with that. But there are
two
embedded structs, both with a URL field.
link
noisy_boy
313 days ago
But the level of nesting isn't the same; only one of them has a direct URL field.
link
masfuerte
313 days ago
You would get the same result if both URL fields were nested one level deeper. Being directly nested isn't the point.
link
“The general rule is that I may access the direct embeds of my type anonymously.”