News for hackers. Stuff that matters.
Re:Getting specific about generics by marmaduke on Saturday September 08, 2018 @01:29PM (#17941807)
Doesn’t that work because C# has a compiler to JIT stuff at runtime?

In principle it could work in te JVM as well right?

Re:Getting specific about generics by magicalhippo on Saturday September 08, 2018 @02:01PM (#17941944)
Yes, the C# approach relies on JIT. IIRC for Java they decided backwards compatibility in the JVM was more important than doing it the C# way.
Re:Getting specific about generics by int_19h on Saturday September 08, 2018 @10:17PM (#17943964)
Conversely, once you remove the JIT, a bunch of stuff stops working. Look at the restrictions on generics for .NET Native.