News for hackers. Stuff that matters.
Re:Java Streams and State by exabrial on Sunday March 03, 2019 @11:30PM (#19298789)
Small want item about Java Streams... I wish this was a language feature. Allow type declarations in lambdas:

currently: collection.stream()....bunch of stuff....forEach(item -> something(item))....

this would be nice: collection.stream()....bunch of stuff....forEach(String item -> something(item))....

When you get 50 levels deep on a really long lambda, this would make debugging the things far easier.

Re:Java Streams and State by mc13 on Monday March 04, 2019 @01:45AM (#19299282)
It is definitely possible to specify the type of the parameter(s) in a lambda expression in Java.