Re: idiom for different implementations of same idea

2002-08-02 Thread Dr. Harald Holtmann
Von: Hal Daume III Hi, In similar situations, especially if there is more than one useful way to use the various parts of an algorithm, I used often prefer existentials: data Model = forall markup table alignments. Model { prepareData :: Data () - Data markup,

Re: idiom for different implementations of same idea

2002-08-01 Thread Dr. Harald Holtmann
Hal Daume III writes: Hi all, I'm looking for some advice on what's the cleanest way to implement something. The basic idea is that I have a task to solve, T. There are many steps to solving this task, but they can be broken down into a small list of elementary steps: - prepareData