Skip to content
  • Xavier Noria's avatar
    5bc90022
    revises AM:Dirty example [Godfrey Chan & Xavier Noria] · 5bc90022
    Xavier Noria authored
    The existing example seems somewhat forced: is it realistic
    to have a model that accepts state in its initializer but
    considers it has not been changed? By allowing state changes
    to happen only via accessors it seems more natural that new
    instances are considered to be unchanged (as they are in AR).
    
    [ci skip]
    5bc90022
    revises AM:Dirty example [Godfrey Chan & Xavier Noria]
    Xavier Noria authored
    The existing example seems somewhat forced: is it realistic
    to have a model that accepts state in its initializer but
    considers it has not been changed? By allowing state changes
    to happen only via accessors it seems more natural that new
    instances are considered to be unchanged (as they are in AR).
    
    [ci skip]
Loading