Hacker News new | ask | show | jobs
by pmarreck 611 days ago
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.
2 comments

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.