• @DarthFrodo@lemmy.world
    link
    fedilink
    191 year ago

    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.

    • @HakFoo
      link
      21 year ago

      You can, but who ever does?

      I suppost that’s why some languages offer autogenerated minimal getter/setters, but that still seems like the same thing with extra steps.