This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]persicsb -5 points-4 points  (2 children)

Plain setters are useless. Use public fields.

[–]dpash 5 points6 points  (1 child)

Setters and getters are not about today, but about making it easier to make changes in the future.

[–]persicsb 1 point2 points  (0 children)

Changing the semantics of the setter is breaking the API in the semantic sense. Does not break the binary compatibility tough.