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

That's not answering the question. I've written many thousands of lines of elixir and never used index based access.


Good for you but why do all mainstream languages, including Clojure, have them?


Because they're built on mutable datatypes. Elixir (and Erlang, and some flavors of lisp) are not. Instead of fudging it to make it syntactically "look like" an array access, elixir makes you flip through the list to understand the cost of what you're doing.

Even clojure's is a cheat.


Then maybe that's a shortcoming of absolute immutability.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: