DEV Community

Discussion on: Ever been stumped by <E>, <T>, <K, V> in OO language documentation?

Collapse
 
creativ_bracket profile image
Jermaine

Hey Amin,

You can use multi-letter placeholders if you want, like the Microsoft docs, although they still prefixed the placeholder letters docs.microsoft.com/en-us/dotnet/cs...

Personally I would be careful doing CacheType as that feels like there is a class CacheType somewhere, especially looking at addItem(item: CacheType)

Collapse
 
aminnairi profile image
Amin

I see, hence the prefix like TCache. I never really understood that until now. Thanks Jermaine!

Thread Thread
 
creativ_bracket profile image
Jermaine

You're welcome Amin.