DEV Community

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

Collapse
 
ronaldogeldres profile image
Ronaldo Geldres

Thanks for the article :D.

I have a question if you don't mind, What should I do when I have two types? Should I use T1 and T2?

Collapse
 
creativ_bracket profile image
Jermaine

You would commonly do <T, U>, but really any letters can be used. I like the .NET constraints detailed here.