I have a class that is essentially mutable, but allows some "persistent" operations. For example, I can mutate an object like this (in Python):
# create an object with y equal to 3 and z equal to "foobar" x = MyDataStructure(y = 3, z = "foobar") xy = 4
However, instead, there are several methods that instead make a copy and then mutate it:
x = MyDataStructure(y=3, z="foobar")
This creates a duplicate x with different values. This does not seem to fit the definition of partial durability given by wikipedia .
So what would you call such a class? QuasiPersistentObject? PersistableObject? SortOfPersistentObject? Even better, are there any technical names for this?
source share