Re:Java JEP 461: Stream Gatherers
by EnergyAmy on Friday November 03, 2023 @09:56AM
(#38128819)
That's just the way Rust does things, like with the `rand` crate. Lean stdlib, easy dependency management. For the purposes of "does Rust do X", popular crates should be included in that consideration.
[ Parent
| on HN ]
Re:Java JEP 461: Stream Gatherers
by capableweb on Friday November 03, 2023 @11:03AM
(#38129871)
Ok, so then what is this discussion about? Java Streams have existed basically forever, as a 3rd party library, but that doesn't matter here in our conversation about Java language features, where 3rd party libraries somehow changes what the language is...
I guess it's nice for Java that they did this, but the OP's assertion that no other language handles this as nicely doesn't really stand. For example, this quote:
> In other mature languages, streams are very rigid and feel non-composable
I'd like to see some motivating examples that make me say to myself, "Yeah, Java's got a neat trick there".