lambda expressions in java

  • Thread starter Thread starter NQ 952
  • Start date Start date
N

NQ 952

Guest
kiwifarms.net
Does anyone know why Java allows you to return a lambda expression for a method? Is this useful in some way? I am very confused, and reading the code is ugly as fuck.

Help me. I am not a programming god.
 
Does anyone know why Java allows you to return a lambda expression for a method? Is this useful in some way? I am very confused, and reading the code is ugly as fuck.

Help me. I am not a programming god.
Ask The Daily WTF Forums.
 
Basically if you're only going to use a method once, use a lambda expression. Although I've never come across them before, and I hate short-hand in programming
 
Back