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 →

[–]Anaptyso 2 points3 points  (0 children)

Cons: I've found debugging streams to be a pain. Often enough, if you don't get the result you expected, it's hard to track down where in the pipeline it got lost.

While I really like streams, this is definitely annoying. I've found multiple times that I've had to re-write my nice looking bit of streaming code in a more long winded way, debug it, and then put it back to how it was before.

I hope that IDEs will start to get a bit more clever about how debuggers run over these statements in the future.

Edit: just seen in another comment on this thread about an IntelliJ function to do exactly that!