Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy maps using Go 1.21's new "maps" package #1648

Closed
wants to merge 6 commits into from
Closed

Copy maps using Go 1.21's new "maps" package #1648

wants to merge 6 commits into from

Conversation

3JoB
Copy link

@3JoB 3JoB commented Nov 8, 2023

An attempted implementation of #1599 .

Also updated lint to 1.21, it seemed to have some issues before?

@3JoB 3JoB marked this pull request as ready for review November 8, 2023 11:01
@3JoB 3JoB marked this pull request as draft November 8, 2023 11:30
@3JoB 3JoB marked this pull request as ready for review November 8, 2023 11:35
fsutil_new.go Outdated Show resolved Hide resolved
fsutil_new.go Outdated Show resolved Hide resolved
@erikdubbelboer
Copy link
Collaborator

What is the benefit of this? It just complicates the code and increases the size. And map.Copy just does exactly the same so there is no speed difference. I think it's only useful if we don't have to support older Go versions anymore which isn't soon.

@leonklingele
Copy link
Contributor

What is the benefit of this? It just complicates the code and increases the size. And map.Copy just does exactly the same so there is no speed difference. I think it's only useful if we don't have to support older Go versions anymore which isn't soon.

True! I didn't check out the code of maps.Copy when opening my issue and think this can be closed now after looking at it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants