2 ms·
The languages themselves sort of forces people's hands depending on how rigid they are and how easy it is to change your mind afterwards. Take Python for examp
by kungtotte 8y ago
The languages themselves sort of forces people's hands depending on how rigid they are and how easy it is to change your mind afterwards.
Take Python for example. Firstly they have a culture of "we're all adults here" and don't really bother with public/private distinctions in classes, and secondly the language makes it easy to turn a variable into a property with the @property decorator.
I'm not that familiar with Java or C#, but I guess turning a variable into a property after the fact is non-trivial. In Python all the calling code remains unchanged (`val = object.field`)