News for hackers. Stuff that matters.
Re:Java 23 Planned Features by Alifatisk on Saturday March 30, 2024 @08:21AM (#39874153)
The String Templates looks neat
Re:Java 23 Planned Features by sirwhinesalot on Saturday March 30, 2024 @08:39AM (#39874286)
All great features but C# has had most of those for a very long time. Java really stagnated for awhile. Glad to see that's no longer the case.
Re:Java 23 Planned Features by ptx on Saturday March 30, 2024 @08:50AM (#39874363)
Was this article hallucinated by ChatGPT? Many of the features described look odd and it doesn't cite sources for them.

For example, the "stream gatherer in action" example seems to just be using collectors, which is an older feature[0].

The scoped value example (which "could revolutionize [...] enhancing the efficiency") seems to use some API I can't find in the JEP and which has zero hits on Google aside from this article. It also has the text "java" and "Copy code" at the start of the code snippet, as if it was copied from somewhere and accidentally copied the UI elements.

The string template example uses a completely different syntax from what I've seen proposed, without giving any details about this changing.

[0] https://www.baeldung.com/java-groupingby-collector

Re:Java 23 Planned Features by sirwhinesalot on Saturday March 30, 2024 @09:27AM (#39874643)
You are very likely right. I can't find sources for this. Sad to see.