From: stephan b. <st...@s1...> - 2004-12-29 20:38:55
|
On Wednesday 29 December 2004 21:23, Marc Duerner wrote: > We could also move Prefs (and the old P::Config for that matter) out > of Util into an App module. That would make sense. > Once we have the file loading/saving > stuff for Prefs we will need FileStreams anyway. This dep is necessary only if Prefs KNOWS it's loadable and saveable :). Using SIO this can be done transparently, so it doesn't need to know :) :). That allows the clients to save it using the default SIO proxy or they can use their own algorithm: P::SIO::save( myprefs, file|stream ); or mySpecialSavePrefs( prefs, file|stream ); Keep the container types free of deps on i/o. They are containers, not stream marshallers. -- ----- st...@s1... http://s11n.net "...pleasure is a grace and is not obedient to the commands of the will." -- Alan W. Watts |