News for hackers. Stuff that matters.
Re:Java Feature Spotlight: Text Blocks by Something1234 on Friday May 01, 2020 @11:49AM (#23043252)
Can you list some of the interesting features that were not adopted in Java?
Re:Java Feature Spotlight: Text Blocks by pron on Saturday May 02, 2020 @04:14AM (#23050255)
Features that Java doesn't and won't have:

Extension methods

Async/await -- Java is going with lightweight threads.

Re:Java Feature Spotlight: Text Blocks by renewiltord on Friday May 01, 2020 @09:14PM (#23048191)
* Lambda syntax took years after it was mainstream.

* I don't think Java still has string interpolation.

* List, Map literals are not a thing Java has either.

* Value types aren't in yet.

* If as expressions. You have to use ternary.

These aren't complaints. I know what I'm getting with Java. No hate.

Re:Java Feature Spotlight: Text Blocks by vips7L on Friday May 01, 2020 @09:46PM (#23048362)
What's wrong with List.of(1,2,3) or Map.of("a", 1, "b", 2)?

Switch expressions can do what if expressions do.

Re:Java Feature Spotlight: Text Blocks by renewiltord on Friday May 01, 2020 @09:53PM (#23048397)
Nothing'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.