[erlang-questions] Tuples Vs Maps

Avinash Dhumane nistrigunya@REDACTED
Wed Sep 16 07:11:31 CEST 2015

I find it more expressive to use maps wherever I have been using tuples.
Especially, when it comes to pattern matching.

It is precise to put #{some_key := some_value} instead of {_, _, _,
{some_key, some_value}, _, _} as a pattern.

I only fear efficiency of maps over tuples, in particular the time-cost,
not so much of space-cost.

How safe will I be if I resort to use only maps freely everywhere?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150916/61f60e49/attachment.htm>

More information about the erlang-questions mailing list