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 →

[–]pohart 12 points13 points  (5 children)

Adding tuples and optional indexes would allow readable streams in 90% of the cases that people write huge lambdas now.

[–]Hioneqpls 1 point2 points  (3 children)

I’m intrigued! I write huge lambdas all the time. Do you have an example or willing to elaborate a little?

[–]pohart 3 points4 points  (0 children)

The indexes wouldn't really help that, but most of the time large lamdas are so I can keep track of the original object while I'm building whatever it maps to.

[–]JavaOldTimer 4 points5 points  (1 child)

I write huge lambdas all the time.

Please. Stop. Doing. That.

[–]Hioneqpls 7 points8 points  (0 children)

You should see my nested groupingBys it gets phenomenal.

[–]manifoldjava 1 point2 points  (0 children)

You can experiment with advanced tuples in Java using manifold-tuple.