2 ms·
> Then for a C programmer Maybe that's not the target audience? Tutorials targetted at C newbies have been about "C pointers" for eons; why would Go tutorials
by kazinator 10y ago
> Then for a C programmer
Maybe that's not the target audience?
Tutorials targetted at C newbies have been about "C pointers" for eons; why would Go tutorials refer to a different programming language?
What that program is doing would not be well-defined in C; you cannot increment a pointer from the address of one local variable to point to another, without leaving behind the ISO C standard dialect. I haven't seen any compiler-specific document which "blesses" the practice.
If that is well-defined in Go, that would be an excellent reason why the article really is specifically about Go pointers and not C pointers.