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

> Encourages use of indexes; which is error prone, most modern languages allow writing most code without needing indexes using map/filter/reduce or comprehensions.

Sometimes (most of the time, actually) I want exactly that. Please, take a look at cryptography libraries and try to implement them without using indexes. Horrifying. Try to create a 3-dimensional array in Erlang, for example, and try to work with it![1] No thank you. I do like my arrays and indexes.

[1] I do use and like Erlang for stuff where I do not have to use arrays though.

This doesn't contradict the post you're replying to. Most times (as evident by the wide prevalence of map/filter/reduce functions) there is no need to access indexes. Other times, practically all languages that offer these functions allow you to write a plain for loop.

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