Go slices trap for python programmers
I'm a python dev learning Go. Here is one subtle difference between python lists and Go slices. Following statment:
b = x[:]
Makes deep copy of list in python, but in Go it's shallow copy.
Written by lukas
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Python
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#