Timeline for Should setters only set values?
Current License: CC BY-SA 4.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 17, 2019 at 5:58 | comment | added | jwenting | setters make code far less brittle. That alone is a very good reason to use them, even if RIGHT NOW they don't do anything but set that member. In the future, if and when something more needs to be done, you now (if you're using setters) don't have to change every code point that uses that member. | |
Jul 16, 2019 at 20:22 | history | edited | User | CC BY-SA 4.0 |
added 280 characters in body
|
Jul 16, 2019 at 20:14 | history | answered | User | CC BY-SA 4.0 |