Both reasons correct: the underlying array, length and cap may change, and as all arguments are pasded by value, we can't see the change if we don't use (assign) the returned value.
-- 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.