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

I've used the map thing a few times, but sparingly. Mostly for things like setting something based on the value of a boolean commandline flag and the like where the performance impact doesn't matter and keeping it on one line offsets the "ugliness" of the construct. You should indeed avoid it for most other things.


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

Search: