4 ms·
> Think of the type variable as a template. The value of this kind of variable does not change. This new logic can be applied to every other constant. > When
by nailer 6y ago
> Think of the type variable as a template. The value of this kind of variable does not change.
This new logic can be applied to every other constant.
> When reading code with generics it does not even make sense to compare the names across two different functions unless they are methods in a class.
Agreed. But I don't think anyone was discussing that.
- rad_gruchalski 6y ago> This new logic can be applied to every other constant. Constant is by definition constant. Generic type is known and bound only in the given code path and may differ across two different executions. That's not constant.