
30 Jan
2009
30 Jan
'09
8:07 p.m.
Eric Niebler wrote:
Neal Becker wrote:
A nit perhaps, but why not overload += to process samples?
Would that be horribly misleading if the accumulator set isn't actually doing addition? I'm happy with the function-style interface.
Not sure what you mean by addition. Here, we are 'adding' a new sample (or samples) to the collection of samples. It doesn't matter whether the underlying accumulator then uses 'addition' or not. Seems clear to me.