General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
Anony Mousse
Indently
comments
Comments by "Anony Mousse" (@anon_y_mousse) on "Beginners Often Make THIS Mistake In Python" video.
This is why languages need explicit pointer types. A single character to modify behavior is the best method. I do wonder, is it possible to modify the copy constructor of built-in types? Could you force arrays to perform a deep copy in that way or would you have to explicitly call the .deepcopy() method? Not that I'm saying you should do that for everything, but if it were as simple as `a = *b;` to perform a deep copy versus `a = b;` to perform a shallow or reference copy, that would be cool.
1