News for hackers. Stuff that matters.
Re:Java Generics Are Turing Complete by adevine on Friday May 27, 2016 @05:39PM (#11789235)
Yes, good point. But if you did have a type constraint, like C#, you would still need the runtime type info to know what to create. This is legal in C#:

public static T Factory<T>() where T:new() { return new T(); }

There are no comments on this comment yet.