I just can across some code where they've got an implicit setter, but no getter eg:
public class Person {
//no getter!
public function set food(value:Food):void {
// do something with food.
this.processFood(value);
this.dispatchEvent(new Event(FoodEvent.EATEN));
}
}
This smells bad to me. Hacky. What do you think?
edit: Perhaps my issue with write only is that in my experience properties are generally read/write, and unless it's blatantly obvious by the variable name or well documented, it might be confusing as to why the property is write only.