3 ms·
What's the problem there? A map has unique keys, a keyword list is just a list of {atom, term}, so there might be duplication. They are similar but they are no
by 1_player 7y ago
What's the problem there? A map has unique keys, a keyword list is just a list of {atom, term}, so there might be duplication.
They are similar but they are not the same thing and are not to be used in the same places.
- dnautics 7y agoThe problem is that it violates the principle of least surprise. Thankfully this sort of thing is not rampant in Elixir, and I discovered the example only after something like 50k lines of very joyful code.