3 ms·
> Well on the other end of the extreme we had Java, which had an awful lot of this: HashMap<String, List<int>> hashmap = new HashMap<String, List<int>>();
by vips7L 3y ago
> Well on the other end of the extreme we had Java, which had an awful lot of this:
HashMap<String, List<int>> hashmap = new HashMap<String, List<int>>();
This is untrue. Inferring diamond types has been built into the language for over a decade.
Map<String, List<Integer>> map = new HashMap<>();
- aw1621107 3y agoI don't think you're actually disagreeing, since justinpombrio said Java had a lot of type parameter verbosity, which implies it no longer does.