News for hackers. Stuff that matters.
Re:I Love Go; I Hate Go by danieldk on Tuesday August 02, 2016 @05:03AM (#12208622)
It doesn't explode the slice:

If the final argument is assignable to a slice type []T, it may be passed unchanged as the value for a ...T parameter if the argument is followed by .... In this case no new slice is created.

https://golang.org/ref/spec#Passing_arguments_to_..._paramet...

(Otherwise, I completely agree that having to use append to remove an element is stupid.)

There are no comments on this comment yet.