[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Java generics (was Re: [computer-go] Chains and liberties)



On Monday, November 15, 2004, at 02:03  AM, Mark Boon wrote:

(I hope I'm not attributing this quotation to the wrong author.)

But
casts are very expensive. In Java 1.5, which I don't use yet, there are
type-safe collections, but I understand from the documentation it just
does
the cast under the hood. (Swept under the carpet I call that.)
The Java 1.5 generic types are used to check type safety at compile time. They are not kept around at run time, so they don't cause any performance hit.

Peter Drake
Assistant Professor of Computer Science
Lewis & Clark College
http://www.lclark.edu/~drake/

_______________________________________________
computer-go mailing list
computer-go@xxxxxxxxxxxxxxxxx
http://www.computer-go.org/mailman/listinfo/computer-go/