← Back to Fala2Me

shallow copy

[ˈʃæloʊ ˈkɑːpi]
nounpl: shallow copies
cópia superficial
1. A copy of an object that creates a new object but does not recursively copy nested objects; the new object references the same nested objects as the original
When you perform a shallow copy of a list containing other lists, the new list points to the same inner lists as the original.
Quando você faz uma cópia superficial de uma lista contendo outras listas, a nova lista aponta para as mesmas listas internas que a original.
2. In programming, a copy operation that duplicates only the top-level structure of a data object
A shallow copy is faster than a deep copy but may cause unexpected behavior when modifying nested structures.
Uma cópia superficial é mais rápida que uma cópia profunda, mas pode causar comportamento inesperado ao modificar estruturas aninhadas.
Synonyms
surface copyreference copy
Antonyms
deep copyfull copy

Regional Variations

General Brazilian
cópia superficial
Standard term used in Brazilian programming contexts
Portugal
cópia superficial
Standard term used in Portuguese programming contexts

Related Idioms & Phrases

deep copy vs shallow copy
copy semantics
Look up more words on Fala2Me
The free English-Portuguese dictionary with real Brazilian accents, NYC slang, conjugator and more
Open Fala2Me →