28 ms·
> Side note: dynamic hash tables just hit Erlang THIS MONTH. So, that's probably not a good reason anymore. What? Erlang's hashtables are called `ETS` and `DET
by fenollp 13y ago
> Side note: dynamic hash tables just hit Erlang THIS MONTH. So, that's probably not a good reason anymore.
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.
- bsder 13y agoI'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.