I'm not getting into the maps/records/ets/mnesia debate. Yes, you could do it in Erlang, but it was clunky and verbose.
Maps are what people coming from other languages expect to see, and I wanted to point out that now Erlang has them.
Maps are what people coming from other languages expect to see, and I wanted to point out that now Erlang has them.
What? Erlang's hashtables are called `ETS` and `DETS` and have been there since at least 1997.
What I believe you are referring to are `maps`, which while they have the syntax of scripting languages' hashes, are nothing but trees. Access is far from constant time. Then again Erlang had these a while ago. They are just adding syntax sugar and pattern matching.