|
|
|
|
|
by hooksfordays
1958 days ago
|
|
Agreed. I think naming generic types makes the most sense with multiple types, or when more specific names make sense. For example, if a generic argument must inherit from a certain type: `class SomeView<ViewState extends BaseViewState>` or some such. `Element` is as non-descriptive as `T` in the author’s example and, IMO, doesn’t add any tangible benefit. |
|