News for hackers. Stuff that matters.
Re:Java 16 by jayd16 on Tuesday March 16, 2021 @09:58PM (#26485626)
What do you think is more elegant in Java than C#? I like both but I think things like LINQ, delegates, reflection, nullabity and even properties are much cleaner in C# vs streams (exceptions?), consumer<T> (weird names. accept? not invoke?), erasure and then just in general its not as nice, Optional<T> (its nullable?!), and getters/setters (I don't want to code gen this away).
Re:Java 16 by lstamour on Wednesday March 17, 2021 @01:36AM (#26486985)
> What do you think is more elegant in Java than C#?

Broad availability of third-party libraries? Java Flight Recorder? IntelliJ? Multiple build system options including first-class support for Bazel, Gradle, and so on. (Msbuild gets old quick...)

That said, personally I prefer TypeScript over all of the above if performance isn't an issue. ;-)

Re:Java 16 by jayd16 on Wednesday March 17, 2021 @04:37AM (#26488010)
We're talking about language design choices not ecosystem.

Even still, libraries are not a problem. Nothing you can't do in C#. You should check out Rider. Bazel and Gradle are cross platform as well.

Flight Recorder is good. I'll give you that. The .NET debugging tools are top notch...on windows. JFR wins out handily until the Linux tools reach parity. Though, again, this is all ecosystem and not language design.

Re:Java 16 by mlk on Wednesday March 17, 2021 @03:12AM (#26487535)
You'd love Kotlin then