3 ms·
How else do you communicate to a user of your code in a language with no access controls that there be dragons if you mess with an object’s internal data struct
by Spivak 4y ago
How else do you communicate to a user of your code in a language with no access controls that there be dragons if you mess with an object’s internal data structures?
Type hinting could do it today but you’d need a PEP to add it.