News for hackers. Stuff that matters.
Re:There is no pass by reference in Go by jbooth on Saturday April 29, 2017 @10:26AM (#14226713)
Ok, yeah, I saw upthread about C++ and Pascal having a more formal reference type.

But in C and Go you can pass pointers to pointers, in Java and Python objects with mutable object references..

It seems like the whole article could have been "Go does not have the C++ reference type, so it's not really in the mix when calling functions".

Re:There is no pass by reference in Go by lvh on Saturday April 29, 2017 @10:29AM (#14226728)
Yep. "Reference type" is a confused and overloaded term, so I prefer to say "pass-by-reference" when I meant int& and "pass-as-reference" (or the, in my opinion confused and confusing, pass-by-object, if that's helpful to the listener).