3 ms·
There shouldn't be a difference between Aliasing and cloning for immutable data because you can't change the data. Deep vs shallow operations is an issue in bo
by rovolo 7y ago
There shouldn't be a difference between Aliasing and cloning for immutable data because you can't change the data.
Deep vs shallow operations is an issue in both imperative and functional programming. In python, you have '==' vs 'is' for different types of equal. You have deep vs shallow copy: https://docs.python.org/3/library/copy.html https://docs.python.org/3/library/copy.html