2 ms·
And Java also didn't start with generics either. They were bolted on later. Which is why it uses type erasure for generics rather than reification like C#.
by paulddraper 7y ago
And Java also didn't start with generics either. They were bolted on later.
Which is why it uses type erasure for generics rather than reification like C#.
- cpx86 7y agoC# didn't either, it was introduced in C#/.NET 2.0. As I've understood it, Java chose type erasure to stay backwards compatible with older JDK versions, whereas .NET instead chose to break compatibility with 1.x and force dependents to target 2.0.