lambda expressions in java

  • Iniciador del tema Iniciador del tema NQ 952
  • Fecha de inicio Fecha de inicio
  • 🔧 Site instability resolved. You can report double-posts and broken attachments. For bigger issues, use the Technical Grievances thread.
    🇵🇦 Nuestro primer dominio localizado está en español en kiwifarms.pa. Our first localized domain is on Spanish on kiwifarms.pa.
  • Want to keep track of this thread?
    Accounts can bookmark posts, watch threads for updates, and jump back to where you stopped reading.
    Create account
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
 
Atrás
Top Abajo