Hacker News new | past | comments | ask | show | jobs | submit login

> 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.




> 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: