News for hackers. Stuff that matters.
Re:Why OO Sucks by Joe Armstrong (2000) by Gibbon1 on Monday April 22, 2019 @01:32AM (#19716774)
> but they undermine the design goal because they more or less directly expose internal state to the public world.

This has always been my problem with getters and setters. It's a way of either pretending you are not or putting bandaids on the fact that you're messing with the objects internal state. For objects with dynamic state this is really bad. The result is racy or brittle.

There are no comments on this comment yet.