HaloO, Larry Wall wrote:
I think that deep copying is rare enough in practice that it should be dehuffmanized to .deepcopy, perhaps with optional arguments saying how deep.
So perhaps .copy:deep then?
Simple shallow copy is .copy, whereas .clone is a .bless variant that will copy based on the deep/shallow preferences of the item being cloned. The default might be identical to .copy though. Perhaps those two can/should be unified.
Yes! Variations of the same theme should go into variations on the call site with the underlying implementation beeing generic enough to support all variants parametrically. --