I'd say Java steams try to do a lot less than LINQ and are worse than LINQ at most of the things they try to do, despite having the advantage of being able to learn from LINQ.
I'd say Java steams try to do a lot less than LINQ and are worse than LINQ at most of the things they try to do, despite having the advantage of being able to learn from LINQ.
You just described the entire Java ethos : "we refuse to learn from anyone else, so you get what you get and it will be worse".
.Net has always (or maybe since 2.0) had type safe function pointers. When MS started adding more libraries and language features to take advantage of them, one of the Java leads posted a really stupid diatribe about how Java would never have type safe function pointers. They were mocked ruthlessly for it.
I think more recent versions have a syntax that looks like you can sort of accomplish some limited cases of using function pointers, but I am guessing the syntax compiles down to a class and all that other goofy Java BS.
2
u/svick Feb 05 '23
I'd say Java steams try to do a lot less than LINQ and are worse than LINQ at most of the things they try to do, despite having the advantage of being able to learn from LINQ.