Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Java Generics Are Turing Complete. Parent comment
interface List<T> { T[] toArray(T[] item); }
You need to pass in a T[] because arrays keep their types at runtime but the generics don't.
There are no comments on this comment yet.
interface List<T> { T[] toArray(T[] item); }
You need to pass in a T[] because arrays keep their types at runtime but the generics don't.