Pointer pop quiz
4 points by carlana
4 points by carlana
Um... this seems pretty elementary? I really thought it was a crazy trick question and spent way too long staring at it before checking that the answer is indeed the obvious one.
Yeah same, this is literally just what a pointer is? There is an equivalent trick question for C on LLVM, which depends on pointer provenance allowing pointers to compare unequal even when they're the same memory address... but that doesn't apply here, and I'm not sure if Go even has a backend that takes provenance into account.