3 ms·
Since you mentioned Go.. Go does a very programmer-friendly thing where v.x and p->x are both spelled y.x -- the compiler knows whether the left side is a point
by yencabulator 4y ago
Since you mentioned Go.. Go does a very programmer-friendly thing where v.x and p->x are both spelled y.x -- the compiler knows whether the left side is a pointer or not, and v->x and p.x would always be errors, so they eliminated the invalid syntax and simplified to always using dot.