Memory management: Data sharing shallow vs deep copy shallow vs deep comparison no such problem with purely functional data structures shallow and deep is the same because use of copy on write