3 ms·
How did generics break backwards compatibility?
by scarface74 8y ago
How did generics break backwards compatibility?
- Skinney 8y ago> Bytecode or ‘Intermediate Language’ (IL) changes. The main > place that the implementation of generics in the CLR differs > from the JVM is that they are ‘fully reified’ instead of > using ‘type erasure’, this was possible because the CLR > designers were willing to break backwards compatibility, > whereas the JVM had been around longer so I assume that this > was a much less appealing option. For more discussion on >this issue see Erasure vs reification and Reified Generics > for Java. Update: this HackerNews discussion is also worth a read. http://mattwarren.org/2018/03/02/How-generics-were-added-to-.NET/ http://mattwarren.org/2018/03/02/How-generics-were-added-to-...