|
|
|
|
|
by dukoid
2047 days ago
|
|
I think there is a simple way around the complexity: Make the field "foo.bar" indistinguishable from the outside from the getter / setter pair bar() / set_bar(). This has the disadvantage of losing the ability to distinguish method calls and references by the presence of parens, but I think overall it should pay off. I have written up some more details here: https://stefan-haustein.com/simplifying-properties |
|
I believe Ruby and Smalltalk more or less work that way.