Re:Java 21: What’s New?
by unlikelytomato on Wednesday August 09, 2023 @07:59PM
(#37070045)
I see. Is it fair to say that most of the issues area related to jdk included libraries vs language features itself? I also find a lot of the included libraries to be cumbersome, but I see these syntax improvements to be a welcome change in contrast.
[ Parent
| on HN ]
> Is it fair to say that most of the issues area related to jdk included libraries vs language features itself?
I think they all connected, for example with added lambdas they also added streams, so collections library now allows to do the same thing using old iterators or new streams APIs, and somehow those APIs are not compatible, it is not easy to produce stream from iterator.
Re:Java 21: What’s New?
by erik_seaberg on Thursday August 10, 2023 @12:39PM
(#37078393)
Iterator is a very simple API that lots of third party code implements, but streams rely on spliterators for concurrency. You can sort of get a spliterator from any iterable and make a stream, but it will probably do all work sequentially.