> Perhaps, it would be a good idea to take Plan9's approach to > portability -- i.e., you develop an extreme allergy to code filled > with #if, #ifdef, #else, #elseif; localize system dependencies in > separate files and hide them behind interfaces. > > By the way, there is a great chapter about portability in The Practice > of Programming, by Brian W. Kernighan and Rob Pike > (http://plan9.bell-labs.com/cm/cs/tpop/). That is where I first > learned about this approach.
I'm doubtful whether that makes the code more readable, as you need to go through layers of indirections to find the place where something is actually implemented. In any case, contributions to apply this strategy to selected places are welcome, assuming they don't slow down the code too much. Regards, Martin _______________________________________________ Python-3000 mailing list [email protected] http://mail.python.org/mailman/listinfo/python-3000 Unsubscribe: http://mail.python.org/mailman/options/python-3000/archive%40mail-archive.com
