Hey nuts!
I ran into the following confusion
today: https://play.golang.org/p/XH8wyj6IbT.
Consulting the golang spec, I think this is correct. `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 .
Thanks both!
On Saturday, June 3, 2017 at 5:22:20 PM UTC-7, Xio Fen wrote:
>
> To answer the first point - the keyword is "*assignable*" here - an slice
> []int{1,23} is not assignable to a slice []I where I is a type of int. See
> https://golang.org/ref/spec#Assignability
>
> ( also golang tre