|
|
|
|
|
by thwd
1521 days ago
|
|
Go solves 99% of the problem quite nicely. You don't often deref pointers in Go, because of auto-addressing. E.g. there's no arrow operator as in C, the dot derefs when necessary. I would say `v := (p.)` could've been the deref operator, but what do I know. |
|
What fixes this issue is that, like most other languages which are not C, Go understands that "is a pointer" is a property of the type, not the name / value.
So even if it used C-style declaration, Go would say
or, using a more verbose syntax