In scala, it's possible to mix parameterized types (e.g. TypeOne[T]) with inheritance (e.g. TypeOneTwo extends TypeOne[TypeTwo] ) but it's complicated. Lesson learned: if it's possible to just pick one or the other (pure inheritance or pure parametrization), do so.
No comments:
Post a Comment