3 ms·
What's wrong with List.of(1,2,3) or Map.of("a", 1, "b", 2)? Switch expressions can do what if expressions do.
by vips7L 7y ago
What's wrong with List.of(1,2,3) or Map.of("a", 1, "b", 2)?
Switch expressions can do what if expressions do.
- renewiltord 7y agoNothing's wrong with that or with `String.format`. I just find it less ergonomic. Like I said, no complaints anywhere. You can just as well use `ExecutorService`s instead of async/await and all that.