<div dir="ltr">The use cases of maps and tuples are completely different, they are efficient in their own space. Maps are efficient in what you are trying to achieve.<div><br></div><div>Theepan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 16, 2015 at 10:41 AM, Avinash Dhumane <span dir="ltr"><<a href="mailto:nistrigunya@gmail.com" target="_blank">nistrigunya@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-size:12.8px">I find it more expressive to use maps wherever I have been using tuples. Especially, when it comes to pattern matching. </span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">It is precise to put #{some_key := some_value} instead of {_, _, _, {some_key, some_value}, _, _} as a pattern.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I only fear efficiency of maps over tuples, in particular the time-cost, not so much of space-cost.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">How safe will I be if I resort to use only maps freely everywhere?</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks</div><div style="font-size:12.8px">Avinash</div><div style="font-size:12.8px"><div><img src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div><br></div>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>