.NET
gj.txt
Associated article: GJ A Generic Java
Tags: .NET
Published source code accompanying the article by Philip Wadler in which he presents GJ, short for "Generic Java," which adds generic types to the Java language. GJ is compatible with Java, the Java Virtual Machine, and existing libraries. It is also efficient, in that information about generic types is maintained only at compile time, not run time.
GJ: A Generic Java
by Philip Wadler
Listing One
interface List {
public void add (Object x);
public Iterator iterator ();
}
interface Iterator {
public Object next ();
public boolean hasNext ();
}
class LinkedList implements List { ... }
class Test {
public static void main (String[] args) {
// byte ...


