Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Less important in Elixir (where they are "maps") due to the immutable nature of them as well as the Struct type which is a structured map.


Yup! I find Elixir makes it really intuitive to know when to represent a collection as a map and when to use a list of tuples. And its easy to transform between the two when needed.


Yes, usually my APIs in Elixir receive their arguments as a well-typed map, not stringly keyed, and transform them to structs which the core business logic expects.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: