| ▲ | adastra22 4 days ago |
| What is the intuition for that? |
|
| ▲ | binary132 4 days ago | parent [-] |
| I think it’s something like: “The general rule is that I may access the direct embeds of my type anonymously.” |
| |
| ▲ | adastra22 4 days ago | parent [-] | | Ok I don’t think anyone disagrees with that. But there are two embedded structs, both with a URL field. | | |
| ▲ | noisy_boy 4 days ago | parent [-] | | But the level of nesting isn't the same; only one of them has a direct URL field. | | |
| ▲ | masfuerte 4 days ago | parent [-] | | You would get the same result if both URL fields were nested one level deeper. Being directly nested isn't the point. |
|
|
|