Deep Copy
noun
say it: “DEEP KOP-ee” /dip ˈkɑpi/
A copy of an object and everything inside it, so the copy shares nothing changeable with the original.
What is a deep copy?
A deep copy copies an object and the lists and objects inside it, so changing the copy never changes the original. A shipment's deep copy gets its own list of boxes. Python's copy.deepcopy and JavaScript's structuredClone make deep copies; otherwise, give the copy a new list yourself.
In a sentence
- “Making a deep copy gave this week's shipment its own list of boxes, and last week's stayed at two.”
Level: Journeyman · More Software Development terms at this level
Updated