2 ms·
This 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
by phendrenad2 6y ago
This 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) )