This Overly Long Variable Name Could Have Been a Comment | Jonathan's Blog
dudinax @ dudinax @programming.dev Posts 7Comments 968Joined 2 yr. ago
dudinax @ dudinax @programming.dev
Posts
7
Comments
968
Joined
2 yr. ago
This relatively new. Only "recently" (last couple decades) was it easy to get type info for a variable where it was used.
The other problem is that if your type is merely an alias, in many languages you can still do
interval_minute = interval_second
without the compiler catching it.