Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm not sure this is a great argument. Lambdas are great for many things. Replacing old fashioned for loops isn't one of them. You get something harder to read, harder to debug and which is less efficient so why would you do that? If you aren't parallelising things there is little point.

Lambdas are a nice way to reduce the boilerplate associated with anonymous inner classes, and that's about the limit of how I use them.



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

Search: