One area where generics tend to break is heterogeneous collections. If your data frame objects are combined into one type of collection to be transferred, it may be difficult for you to use generics. In particular, since in the example you provide, there is no base type that inherits all the "user data" except the object.
In fact, in these types of problems you can define both a common interface and a non-universal version so that you can pass types polymorphically.
Generics are powerful and very useful, but in the example you are describing, I suspect that they may be more of a problem than they are worth it.
source
share