[erlang-questions] Maps single value access not implemented
Mon Feb 10 13:22:32 CET 2014
On 02/10/2014 01:10 PM, Sina Samavati wrote:
> I feel much better with that. I guess something in *EEP 43* made Maps complex,
> I mean, we don't really need all those capabilities for Maps as proposed in
> _EEP 43_. For example (this is just a friendly feedback not a *complaint*),
> I think the '=>' operator is enough for both adding a new key and updating an
> existing key.
The := operator is *very important*. It pretty much means "crash if my
code is messed up". This is essential.
What makes maps complex is the variable as key in pattern matching. I'll
let someone else explain why it's complex, this is above my pay grade.
More information about the erlang-questions