Hacker News new | ask | show | jobs
by exabrial 3030 days ago
List<> tells me it's an ordered collection of a singular superclass that allows duplicate instances.

var tells me nothing.

1 comments

'var transactions' is enough information for most people to understand it's a list of some sort. If it really matters to you then use the IDE. The full type info is just not that useful. That's why most languages are moving towards inferred typing - typescript, c#, java, c++, rust, go, scala, etc...
And the fact we're (amicably) disagreeing just proves I'm right. List<> leaves no ambiguity
How do you know it's not a count of the transactions?