|
|
|
|
|
by masklinn
1521 days ago
|
|
That you don't deref pointers in Go is not what fixes this issue. 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 *int p
or, using a more verbose syntax Pointer[int] p
|
|