Hacker News new | past | comments | ask | show | jobs | submit login

In Java, you can think of lambdas as sugar for anonymous classes. All problems and benefits that are present with anon classes should manifest with lambdas as well.

However, one clear advantage of lambdas is that they reduce verbosity of anon classes.




I like the verbosity of anon classes, they make sense. They look right in the debugger. Lambdas do not look clear they look like vodoo, I very much dislike them and wish they'd never been introduced.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: