Live data from Hacker News

New language features since Java 8 to 17

advancedweb.hu

21–30 of 358 posts

Re: New language features since Java 8 to 17

#21

I've been bitten by bitwise operations on signed integers a few too many times. Are there any plans on having normal unsigned integer types yet?

Other than sign-extension on right shift, I can't think of a bitwise operator that has a different implementation between signed/unsigned. What scenarios are you thinking of?

Re: New language features since Java 8 to 17

#24

Earlier quoted context omitted.

I don’t follow why this is unfortunate?

I assume OP prefers Kotlin or Scala. Personally, I think one of my favorite things about Java is that, all things considered, it's a small-ish language. So I'm glad that Java is both willing to evolve (slowly, letting other people try stuff out first) but also clearly focused on a curated feature set and resistant to letting new stuff in to bloat it. I am very happy to deal with minor things like no multiline string…

By multiline strings are you referring to text blocks? Those have been added to the language in Java 15: https://docs.oracle.com/en/java/javase/15/text-blocks/index.... .

Re: New language features since Java 8 to 17

#27

I've been bitten by bitwise operations on signed integers a few too many times. Are there any plans on having normal unsigned integer types yet?

Java already has everything you need for unsigned integers doesn't it? You just use the normal int type, and then use methods like Integer#compareUnsigned instead of language operators.

Re: New language features since Java 8 to 17

#28

Whenever we read about new improvement in Java,it is always inevitably followed by concerns for viability of Kotlin or Scala. However these concerns are never applicable for Closure. I am glad I went all in on Clojure.

Can you explain that for the Java noobs here, like me?

Re: New language features since Java 8 to 17

#29

Earlier quoted context omitted.

I don’t follow why this is unfortunate?

A lot of people have migrated away from Java to better JVM languages. If Java actually keeps improving, there's a reasonable likelihood that people will stop migrating and those that have may come back to Java from these other langs. Long term this could lead to a loss of maintenance for tools and libraries for these languages which could kill them and leave those that migrated with a dead & decaying ecosystem. Of co…

A tiny drop, an endless collection of guest language that goes back to Beanshell, many of which now forgotten.
Post reply on HN