News for hackers. Stuff that matters.
Re:What’s New Between Java 11 and Java 17? (2021) by oaiey on Wednesday March 30, 2022 @12:45AM (#30851566)
It looks like C# and Java are now developed in parallel with the same features.
Re:What’s New Between Java 11 and Java 17? (2021) by koyote on Wednesday March 30, 2022 @01:43AM (#30851821)
I was about to say the same thing.

As someone who moved from Java to C# around 2013, I always felt that C# was close to Java but with less bad parts and more good parts. Looks like Java's now borrowing a lot of the nicer features which is good to see.

There are still so many nice exclusive features in C# that I definitely wouldn't want to go back to Java any time soon though (properties, powerful tuples, null coalescing, interpolated strings, ...).

Re:What’s New Between Java 11 and Java 17? (2021) by cheradenine_uk on Wednesday March 30, 2022 @04:13AM (#30852587)
I feel similarly - though I think it's more the case that Java considers things a lot longer and considers the implications before simply adding them.

Java needed string interpolation forever before _finally_ getting something. There are parts of C# that I think are going to look like a good idea at the time, but turned out not so great. Extension methods is one, and async/await is another. In fact, if Project Loom ever, finally, actually ships it'll make the whole c# code colouring thing look like the abomination that it is.

Re:What’s New Between Java 11 and Java 17? (2021) by oaiey on Thursday March 31, 2022 @04:19AM (#30864989)
I actually like the code colouring. It is clear indication that the function is optimized for asynchronoty and that I need to take care how to properly integrate then to achieve the goal. Is the Async suffix stupid: yes. Is a clear indication needed: imho yes
Re:What’s New Between Java 11 and Java 17? (2021) by azth on Wednesday March 30, 2022 @02:00AM (#30851917)
Re:What’s New Between Java 11 and Java 17? (2021) by pjmlp on Wednesday March 30, 2022 @01:48AM (#30851852)
It has always been like that.

Java attributes and compiler plugins took their inspiration from .NET early version.

Default method interfaces in C# come from Java, LINQ vs streams, JIT / PGO caches,...

That is why it is still relatively easy to do consulting across both platforms.

Re:What’s New Between Java 11 and Java 17? (2021) by oaiey on Thursday March 31, 2022 @04:20AM (#30864997)
I think the interaction between the small c# design team vs. JEP process plays hand in hand.