3 ms·
While I do use `var` when appropriate, your example is in general not appropriate You would like to use Map<Key, Value> items = new HashMap<>() since in genera
by jsnsndn 1y ago
While I do use `var` when appropriate, your example is in general not appropriate
You would like to use Map<Key, Value> items = new HashMap<>() since in general you do not want implementation detail leaking into contracts
- vips7L 1y agoUsing var there doesn’t leak any implementation details into any contracts. Var is for local variables inside of functions. There are no details or contracts there.