Skip to content

Simplify Config.Clone with {maps,slices}.Clone#1313

Merged
arp242 merged 1 commit intolib:masterfrom
JRaspass:simplify-config-clone
Apr 8, 2026
Merged

Simplify Config.Clone with {maps,slices}.Clone#1313
arp242 merged 1 commit intolib:masterfrom
JRaspass:simplify-config-clone

Conversation

@JRaspass
Copy link
Copy Markdown
Contributor

@JRaspass JRaspass commented Apr 3, 2026

A small change in behaviour in that nil maps and slices will be preserved but if they were fine in the original Config it only makes sense that they'd be fine in the cloned Config. Using std library Clone functions in our Clone function has a nice symmetry.

@arp242 arp242 force-pushed the simplify-config-clone branch from ddc2ac9 to 4596db2 Compare April 8, 2026 15:31
A small change in behaviour in that nil maps and slices will be preserved
but if they were fine in the original Config it only makes sense that
they'd be fine in the cloned Config. Using std library Clone functions
in our Clone function has a nice symmetry.
@arp242 arp242 force-pushed the simplify-config-clone branch from 4596db2 to 1b024b3 Compare April 8, 2026 15:33
@arp242 arp242 merged commit 1b41ea6 into lib:master Apr 8, 2026
14 checks passed
@arp242
Copy link
Copy Markdown
Collaborator

arp242 commented Apr 8, 2026

Thanks

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.

2 participants