3 ms·
Did you mean: "The T in this context..."? Instantiating a generic type is like a function call at compile time, where the type arguments are substituted for ty
by barrkel 9y ago
Did you mean: "The T in this context..."?
Instantiating a generic type is like a function call at compile time, where the type arguments are substituted for type parameters in the body of the generic type. It's a variable at compile time, but it's a concrete type at runtime for any version of the code that can execute.