
11 Sep
2008
11 Sep
'08
10:37 a.m.
(Henning:)
If there is no algorithm that becomes more generic by the use of a type class, I would not use a type class, but stick to labelToRenderable [...]
The problem with function names as "labelToRenderable" is that they have type information as part of the name. Consistency of that information cannot be enforced by the language, which makes it dangerous. If you want type information (e.g. to resolve overloading, for the compiler - and for the reader!) use the language, and write a type annotation. J.W.