News for hackers. Stuff that matters.
Re:Things I Wish Someone Had Told Me About Go by dewitt on Monday March 11, 2013 @11:32AM (#5357341)
That pointer example is a little weird. A C/C++ pointer used that way wouldn't print "Leto" "Paul", either. All it would do is update the local variable to point to a new object, but the caller would still be pointing to the original. I think the poster meant to use a pointer to a pointer here (which would work as intended in both Go and C/C++).

There are no comments on this comment yet.