Re:SICP Goodness – Why you don't need looping constructs
by tigershark on Friday June 29, 2018 @08:34AM
(#17424107)
And the whole enumerator/stream now it’s a mess in Java compared to C#.
In c# you have IEnumerable that works perfectly with LINQ without using a .stream() method call.
You don’t need to collect it explicitly, it will be just “materialised” at iteration time.
If you instead try to pass a stream, even casting it to an enumerator, and it is used twice your software will fail at runtime.
Honestly I can’t imagine how did they manage to over complicate so much Java streams implementation after that Linq was used successfully and in a very elegant way for years...
[ Parent
| on HN ]
There are no comments on this comment yet.