Thanks! I've been using <T, U, V, ...> when i wrote generic types. Didn't put a second thought into which letters should be used (T for Type, U because T was taken, etc).
Any reason why we don't use a multi-letter word, example: Record<KEY,VALUE> or List<ELEMENT>?
I don't have a solid reason as to why multi-letter words are not used, apart from the fact that its more characters and therefore not conventional. Consequently, this could be mistaken for actual rather than placeholder types.
Thanks! I've been using
<T, U, V, ...>
when i wrote generic types. Didn't put a second thought into which letters should be used (T for Type, U because T was taken, etc).Any reason why we don't use a multi-letter word, example:
Record<KEY,VALUE>
orList<ELEMENT>
?I don't have a solid reason as to why multi-letter words are not used, apart from the fact that its more characters and therefore not conventional. Consequently, this could be mistaken for actual rather than placeholder types.
In C# you see multi element words, like
TElement
orTEntity
for example.Yeah you're right. I had seen that in the docs. It's still got the placeholder letter as prefix:
docs.microsoft.com/en-us/dotnet/cs...