@[email protected] to Programmer [email protected] • 1 year agoobject.setobject(object.getobject().object).to_object()lemmy.worldimagemessage-square9fedilinkarrow-up150arrow-down17
arrow-up143arrow-down1imageobject.setobject(object.getobject().object).to_object()lemmy.world@[email protected] to Programmer [email protected] • 1 year agomessage-square9fedilink
minus-square@[email protected]linkfedilink14•1 year agoThe 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.
minus-square@[email protected]linkfedilink3•1 year agoalso const correctness in languages that support that concept
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.
typical OOP progaganda
also const correctness in languages that support that concept