4 ms·
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.
by pmarreck 2y 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.
- mikhmha 2y agoYup! 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.
- nesarkvechnep 2y agoYes, 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.