<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;">On 28 Sep 2017, 21:04 +0200, Vans S <vans_163@yahoo.com>, wrote:<br /></div>
<div name="messageReplySection" style="font-size: 14px; font-family: -apple-system, BlinkMacSystemFont, sans-serif;"><br />
<blockquote type="cite" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #1abc9c;">
<div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px">
<div id="yui_3_16_0_ym19_1_1505517459498_1673291" dir="ltr"><span id="yui_3_16_0_ym19_1_1505517459498_1673342"><br />
I really like the ideas behind this but working with the yrl seems to be an undocumented dark art, and very time consuming to <br />
learn.  There is so many things I would like to be able to do and to have the code compile to the same/functionally similar abstract form.<br />
<br />
my_fun(atom, Map=#{bitfield_set=> _}) -><br />
        Value = maps:get(key, Map),<br />
        Value2 = maps:get(key2, Map, undefined),<br />
        Value3 = maps:get(key4, maps:get(key3, Map, #{}), undefined),<br />
        List = io:format("the atom as a binary is ~p ~p", [atom, Value]),<br />
        unicode:characters_to_binary(List).<br />
<br />
    VS<br />
<br />
fun my_fun(atom, Map=#{bitfield_set}) -><br />
    Value = Map[key]<br />
    Value2 = Map[key2, undefined]<br />
    Value3 = Map[key3][key4]<br />
    "the atom as a binary is #{atom} #{Value}"<br />
end</span></div>
<div class="qtdSeparateBR"> </div>
</div>
</blockquote>
<div><br /></div>
<div>
<div>
<div>The initial map proposal included a syntax for key access:
<div><br /></div>
<div>    Map#{Key}</div>
<div><br /></div>
<div>But it was never actually implemented.</div>
</div>
</div>
<div><br /></div>
<div>
<div>
<div>MichaƂ.</div>
</div>
</div>
</div>
<div></div>
</div>
</body>
</html>