News for hackers. Stuff that matters.
Re:Elixir Gotchas by peoplefromibiza on Wednesday June 26, 2024 @06:57AM (#40798540)
many functional languages (if not all) do not have arrays (intended as a contiguous areas of memory containing indexable elements of fixed size) they are usually left as an implementation as libraries (i.e. Haskell's Data.Array)

There are also easy workarounds to that (including NIFs), I personally never needed arrays in Elixir

Re:Elixir Gotchas by derekkraan on Wednesday June 26, 2024 @10:15AM (#40800337)
Yeah, just (learn how to) use lists and you'll be fine.

Of course if your goal is to re-implement sorting algorithms that were designed for mutable memory, you will be disappointed.

This isn't a deal-breaker. If you want a platform language, use that. But for web, you'd be hard-pressed to find something better suited than Elixir.

Re:Elixir Gotchas by gregors on Wednesday June 26, 2024 @01:06PM (#40802106)
I've only ran into a single instance where I needed array-like access and since it was a read only type of thing tuples worked perfectly.