DEV Community

Discussion on: What aspect of Go were you at odds with, coming from a different tech stack?

Collapse
 
tinsoldier6 profile image
Jason Gade

Slices behave that way too. The function has to be written to specifically make a copy of maps and slices if you don't want to mutate the original.

Collapse
 
buphmin profile image
buphmin

Ah yeah fair enough.