3 ms·
I don't think there is a movement towards immutable data structures. The const keyword only works on basic types (bool, num, str). Objects can have private memb
by lbhdc 5y ago
I don't think there is a movement towards immutable data structures. The const keyword only works on basic types (bool, num, str). Objects can have private member variables, but those are only private on the module level. You can also pass by copy instead of passing a pointer.