Is there a word for the API pattern where a method may get or set, depending on whether it is called with an argument or none?
obj.prop(); // Returns value obj.prop(new_value); // Sets new value
A variation for dictionary-like properties takes one or two arguments respectively:
obj.dict(key); // Returns value for key obj.dict(key, new_value); // Sets new value for key
Again, does this style have a name?
EDIT: The word proxy doesn't seem half bad to me. Any devastating arguments against calling these kind of functions proxies?