3 ms·
You can model type classes in F#, but it's not pretty[1]. Interestingly, C# can model type classes much more straightforwardly (using implicit conversions), an
by noblethrasher 12y ago
You can model type classes in F#, but it's not pretty[1].
Interestingly, C# can model type classes much more straightforwardly (using implicit conversions), and this is one of the reasons I continue to use it along side F#.
[1]http://stackoverflow.com/questions/9868327/f-type-constraints-and-overloading-resolution http://stackoverflow.com/questions/9868327/f-type-constraint...