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?This style is often used in JavaScript:obj.prop();                // Returns valueobj.prop(new_value);       // Sets new valueA variation for dictionary-like properties takes one or two arguments respectively:obj.dict(key);             // Returns value for keyobj.dict(key, new_value);  // Sets new value for keyAgain, 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?
Word for method that gets and sets?
api;naming