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

Agreed with @richiebful1, multiliners are better as standlone funcs, and I'd say (personal opinion) that they'd be better here. I like functional a lot but I don't lambda up unless it's more or less a one-liner or a kind of control structure, where they can get large but that's the point.

I've had to deal with too much shit code where lambdas within lambdas are considered hot.

Added bonus, the names are useful (naming is hard because if you do it right you are adding valuable information).

I'm sure there are cases where doing it your way are better, but I can't think of them.



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

Search: