
18 Sep
2007
18 Sep
'07
12:59 p.m.
hughperkins:
Just out of curiosity, how could one do something like a factory, so that by default a library uses, say, Data.Map, but by making a simple assignment we can switch the library to use a different implementation?
Polymorphism, specifically, typeclasses, would be one option here. -- Don