Re:Public and private class fields
by MereInterest on Thursday December 13, 2018 @04:03PM
(#18676090)
This is why languages with properties are fantastic. If you find that you would rather have a getter than a member variable, you just change it to a property. You get all the backwards-compatibility of getters without paying the development cost of them up front.
[ Parent
| on HN ]
There are no comments on this comment yet.