Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jsnsndn
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
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