bjornharrtell/wastelands — Issue #11: Remove use of Arrays with abstract types for everything that isn't performance critical
Author: johansjoberg
Created: 2012-01-04 13:47:29+00:00
State: open

I suggest that we remove Arrays using abstract types e.g Array[T]. This is because we are forced to "clutter" the class and methods with [T : ClassManifest] to be able to give hints to reify the type at runtime. This is not only for the class that has code with Array[T] but also all classes calling that code indirectly from method calls etc.

As an example TileSetFactory could use ArrayBuffer instead of Array, and the the using classes of TileSetFactory should convert to Array as needed with toArray-method.