35
object.setobject(object.getobject().object).to_object()
(lemmy.world)
Post funny things about programming here! (Or just rant about your favourite programming language.)
The neat thing is, you can add stuff like range checks and logging for getters and setters without changing every call. Separation of concerns is also vital in larger projects.
also const correctness in languages that support that concept