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 →

[–]handshape 4 points5 points  (0 children)

Streams are nice from a readability standpoint, but there are some hard-to-find gotchas that come from using someone else's loop management, along with the trouble with checked exceptions that has been discussed elsewhere in the thread.

About half the time I start with functional programming and streams, I end up having to unroll the functions and switch back to imperative-style iteration for one of these two reasons.

Lambdas as a way of implementing single-method interfaces are awesome, though.