<div dir="ltr">Maps can in no way replace records. But yes, is a complement to records by providing a record like structure and syntax for use in place of dicts.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Aug 27, 2014 at 4:15 PM, Chris Pacejo <span dir="ltr"><<a href="mailto:colanderman@gmail.com" target="_blank">colanderman@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 class="">On Wed, Aug 27, 2014 at 4:55 PM, Fred Hebert <<a href="mailto:mononcqc@ferd.ca">mononcqc@ferd.ca</a>> wrote:<br>
> I fear the same. In <a href="http://learnyousomeerlang.com/maps" target="_blank">http://learnyousomeerlang.com/maps</a>, I made a<br>
> conscious effort to distinguish maps from records, for example.<br>
<br>
</div>Ha! I think we've come to a different conclusion from the same<br>
premise :) I believe the opposite, that maps-as-records are useful,<br>
and should replace/supplement records; while dicts (barring<br>
performance) are just fine as-is and need no special syntax. But<br>
that's a separate discussion (and one I don't feel as strongly about);<br>
I'm glad we agree that maps performing double-duty is problematic.<br>
(Perhaps the reason maps currently perform double-duty is because both<br>
the "I-want-syntax-for-dicts" and the<br>
"I-want-structurally-typed-records" people have latched onto maps as<br>
their savior.)<br>
<br>
[Aside: Learn You Some Erlang is great, even as a reference. Thanks<br>
for writing and maintaining it!]<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<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" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br></div>