News for hackers. Stuff that matters.
Re:Another go at Go failed by Roboprog on Wednesday January 08, 2014 @10:59AM (#7024259)
If the base type of the set is a bit set, the function need only worry about the position of each bit, and not the intended type. Of course, if the set has content in hash buckets (or a similar scheme), you would need to pass in some kind of comparator function/callback.

I say this as a former C programmer used to doing such things to make library routines like "bsearch()" work.

Too many things in Java rely on subclassing, rather than functional composition.

There are no comments on this comment yet.