2 ms·
The problem is that you often need to decorate a generic parameter with additional information (like its type constraints or variance). If the type parameter do
by munificent 16y ago
The problem is that you often need to decorate a generic parameter with additional information (like its type constraints or variance). If the type parameter doesn't have a singular place where it's "declared", there's no convenience place to do that. In your example, how would you specify that T must implement Summable?