3 ms·
Inferring diamond types has been built into the language for _decades_. Your static utility functions save only 2 characters, but will add massive confusion fo
by vips7L 3y ago
Inferring diamond types has been built into the language for _decades_.
Your static utility functions save only 2 characters, but will add massive confusion for other developers.
List<String> names = new ArrayList<>();
or even better just use var:
var names = new ArrayList<String>();
Those static functions are neither simpler nor cleaner. Don’t do this.