2 ms·
Object literals: think JavaScript. const foo = new Bar a = 1, b = 2 } With a default constructor or a builder (both provided by Lombok, maybe with
by nine_k 7y ago
Object literals: think JavaScript.
const foo = new Bar
a = 1,
b = 2
}
With a default constructor or a builder (both provided by Lombok, maybe with other libraries, too) this level of succinctness is quite achievable in Java, too.