3 ms·
A variable name tells me what the person who wrote it thought it was at the time they wrote it. A type tells me what it is in any version of the program that t
by mike_hock 7y ago
A variable name tells me what the person who wrote it thought it was at the time they wrote it.
A type tells me what it is in any version of the program that the compiler accepts.
- sooheon 7y agoIf the type is something generic like Tuple, it doesn't tell you what it means. If it's a type with domain semantics like Speed or Velocity, then goto your issue with naming variables.
- mike_hock 7y agoNo, but it tells me what types the tuple elements are, and thus indirectly (I know where to look to find out), how I can use them, and what calling functions on them will do. It doesn't tell me their significance for the business logic, that's what variable names are for.