
7 Sep
2010
7 Sep
'10
2:23 p.m.
Henning Thielemann
As I see there is no cycle in the types. How about defining Game, Rule, Obs in private modules, like Private.Game, Private.Rule, Private.Obs, and implementing the functions in public modules like Game, Rule, Obs ?
I guess that conflicts with the advice of putting the functions (behaviour) close to the data that it concerns. But if a function mentions two types (and the types are separate), it requires a decision - in OO as well: you would (arbitrarily) make them a method of one class or the other. J.W.