4 ms·
To Hell with Setters and Getters
- socialdemocrat 6y agoAn article about why using setters and getters for member variables is frequently a bad choice.
- phendrenad2 6y agoThis is why I like Ruby, something can look like a variable but be a setter/getter under the hood. Wish all languages had that functionality. Maybe many do that I'm not aware of, with some metaprogramming hackery.
- Someone 6y agoMany recent languages have properties (https://en.wikipedia.org/wiki/Property_(programming) https://en.wikipedia.org/wiki/Property_(programming) )