3 ms·
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.
by MereInterest 8y ago
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.