Re:Things I Wish Someone Had Told Me About Go
by matthavener on Tuesday March 12, 2013 @09:59AM
(#5361801)
I'm making some assumptions about the compiler optimization: If T is something like "int", then passing by reference can be more costly, because a value that was once stored in a register now needs a real memory address and must be deferenced to read.
[ Parent
| on HN ]
There are no comments on this comment yet.