maps package was released with Go 1.21.
Clone() comment says "This is a shallow clone".
I often hear the term `shallow copy', but I don't know what `shallow clone` 
means.
What is the state of a `shallow cloned` map?
Do you mean that the cloned map values are shallow copied?

> Clone returns a copy of m. This is a shallow clone: the new keys and 
values are set using ordinary assignment.

https://pkg.go.dev/maps@master#Clone

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/0d7ce023-d42c-4f6b-8e07-cedd447ebcd4n%40googlegroups.com.

Reply via email to