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

This is more of a case of a stupid library than stupid language.

And whether it's a stupid library is even debatable. map() has gained a more popular understanding from functional programming these days but it was probably not so when this Javascript map() function was added.




It is very likely that the person who added map() to JavaScript knew about its meaning in functional languages, otherwise s/he would have called it applyToEach() or something like that.




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

Search: