News for hackers. Stuff that matters.
Re:Things I Wish Someone Had Told Me About Go by zeeboo on Monday March 11, 2013 @11:18AM (#5357224)
Nope, looks like you don't understand pointers. You're still modifying the passed-by-value pointer to a pointer, and not the thing that it points to.
Re:Things I Wish Someone Had Told Me About Go by GhotiFish on Monday March 11, 2013 @11:32AM (#5357337)
ah! That makes a lot of sense actually.

If you want to cause side effects in a function, you have to dereference something. (or call another evil function)

The only exception being dot operators, which implicitly dereference their left hand argument.

   (&x).whatever() == x.whatever()
I wish go had used arrow notation now. Explicitly marking side effects is a good thing.