On Fri, Dec 15, 2017 at 11:08 AM, Ivan Kurnosov <zerk...@gmail.com> wrote:
> Jesse,
>
> what you quoted is an optimisation for the "Otherwise, the value passed is a
> new slice of type []T with a new underlying array whose successive elements
> ".
>
> Your quote says: if the final argument is assignable - it may be passed as
> is, without any copy involving.

I quoted the section that explains what the ... syntax does.
It's the only section in the spec that refers to that syntax.

The 'final argument' referred to here is the varadic argument of the function.

You can pass a slice as the value for a varadic argument by passing
the slice followed by ...

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to