3 ms·
"And as the various comments there show, .Net does it right, and better than any of the methods they list." .NET has generics? I mean, actual generics, not sim
by gngeal 14y ago
"And as the various comments there show, .Net does it right, and better than any of the methods they list."
.NET has generics? I mean, actual generics, not simple first-order parametric polymorphism with type constructors of the kind (* -> *)? Can you write, say, a generic reader or a generic printer that will work with all types? How would you go about doing that?
- AndrewDucker 14y agoYou'll have to simplify that for someone who doesn't know type theory :-> Looking at the Parametric Polymorphism article on Wikipedia, that indicates that implementing it produces generic functions and generic datatypes, which is what I'm talking about here. Sadly, beyond about the third sentence of that article I'm lost :->