Generics, but not flexible

Posted on September 1, 2006
Tags: technology

After a long time I finally decided to give the new facilities of Java 1.5 a go. What I needed to do was create a class which provided methods for working with matrices, so I wanted to be able to do something like AdvancedMatrix<double>. But behold, you can’t use generics with primatives. Oh my god. The one time this would be really handy, and you can’t do it.

I certainly hope this is on the TODO list, else it doesn’t do much for scientific computing with Java.

powered by performancing firefox