2 ms·
Where you there when generics got brought in? What was that like from MS's side?
by MichaelGG 12y ago
Where you there when generics got brought in? What was that like from MS's side?
- shawnb576 12y agoYeah - this is where Anders shines. Generics were brought in primarily to avoid boxing/unboxing costs of value types, but really are incredibly powerful when used properly. And I'll say that generics in C#/.NET are done very well. Every time I use Java, I want to use generics until I remember Java's generics are confusing and almost useless. I really miss having them when doing work in other languages, even with some of the covariance gotchas, they're just amazingly good.
- MichaelGG 12y agoI thought the CLR team had no plan/way to ship genetics in the CLR, and C# would have had to gone with erasure, like Java. That the first C# with generics came from across the Atlantic. Isn't that so?