Closed tetsuharuohzeki closed 5 years ago
I'm not sure about the detail of history of this kind of conventions for C#, I seem C# has these rules:
I could not find any conventions, but I found the discussion: https://discuss.kotlinlang.org/t/naming-convention-for-type-parameters/1546
https://google.github.io/styleguide/cppguide.html#General_Naming_Rules
Template parameters should follow the naming style for their category: type template parameters should follow the rules for type names, and non-type template parameters should follow the rules for variable names.
Some thought
Motivation
Currently, we define the generic type name convention to both forms:
T
,E
, or other short form.T
orTBar
or otherT
-prefixed form.On the other hands, the default config of typescript-eslint only allows the later form.
I think the later form is more expressive and improves a readability. So I'd like to sort to it.
Related Issue