3 ms·
My experience is that 99% of the work related to geters and seters is handled by the IDE
by brtkdotse 2y ago
My experience is that 99% of the work related to geters and seters is handled by the IDE
- ok123456 2y agoThis encapsulation style for OOP is standard; the language should support it and not require additional design patterns or IDE tools. An argument could be made for adding a sigil so the class user knows this isn't a dumb field, but then if someone wants to upgrade a dumb field to this, as Python encourages, they would need to modify every use.