2 ms·
Why would generalizing a type definition make an error?
by falcolas 9y ago
Why would generalizing a type definition make an error?
- lmm 9y agoIn the places you use a specific concrete type you presumably did so for a reason, and now need to think about how the type change affects it. The parts of your code that are generic should have been written to be generic, and the parts where the type can be inferred from the lower-level functions involved should have left the type to be inferred from the lower-level functions involved.