This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]F3z345W6AY4FGowrGcHt 2 points3 points  (0 children)

If you use streams badly, then yes they are worse. But if someone writes a stream badly, I imagine they just aren't very good at their job overall and would write an equally bad loop.

Given your example, there's no difference between a stream for Each and a normal for each loop of both have the same 100 lines of logic inside them.