Author: Lauri Alanko
Date: Nov 12, 2007 14:03
..., and rejects some valid code, forcing the programmer to explicitly circumvent it. For example, consider classic (pre-generics) Java. There, I can easily store a string in a vector: ArrayList l = new ArrayList(); l.add("Foo"); but immediately afterwards, I cannot directly retrieve the string: String s = l.get(0); // bad This is a perfectly safe operation, since we the first ...
|