On 5/18/15 2:45 PM, Ali Çehreli wrote:

Exactly! That recent discovery of mine made me come up with this
guideline: "Never append to a parameter slice."

I think this may not be an appropriate guideline. It's perfectly fine to append to a parameter slice. You just need to leave it the way you found it. Unless the point of the function is to append to it (maybe you return the result for example).

-Steve

Reply via email to