Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sph
on April 23, 2020
|
parent
|
context
|
favorite
| on:
Build a real-time Twitter clone with LiveView and ...
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
on April 24, 2020
[–]
The 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.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
They are similar but they are not the same thing and are not to be used in the same places.