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

Naming things, especially functions that you tend to use in lambdas, is often hard. Imagine if you had to name a for loop to us it. That's how it feels.


Then don't do it. Use a generic name, like f or l2. Reusing names is possible anyway, so you can name all the onetime-functions the same.


I'm not saying it's impossible, I'm saying it's annoying and I prefer languages where it's not.




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

Search: