in reply to Re^2: The Pretty Good Idea of Demeter (Was: Definition of Law of Demeter)
in thread Are lvalue methods (as properties) a good idea?

I like your example with mother->brother->child and cousin. Not because it reduces the amount of keystrokes, but because it adds abstraction and meaning.

This may be the real gift of the LoD, that when applied properly it's an opportunity to clarify the intentions and the meaning of the relationship between mother, brother, and child.

/J

  • Comment on Re^3: The Pretty Good Idea of Demeter (Was: Definition of Law of Demeter)