<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
Sorry if this is a duplicate, but I couldn't find a bug report
dealing with this.<br>
<br>
In the EEP (43 - <a class="moz-txt-link-freetext" href="http://www.erlang.org/eeps/eep-0043.html">http://www.erlang.org/eeps/eep-0043.html</a>) for the
map data type, syntax for accessing the value associated with a key
is suggested as, e.g. key 'a_key' in map M:<br>
<br>
<pre style="box-sizing: border-box; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 13px; white-space: pre-wrap; display: block; padding: 9.5px; margin: 0px 0px 10px; line-height: 1.428571429; color: rgb(51, 51, 51); word-break: break-all; word-wrap: break-word; background-color: rgb(245, 245, 245); border: 1px solid rgb(204, 204, 204); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><code style="box-sizing: border-box; font-family: Monaco, Menlo, Consolas, 'Courier New', monospace; font-size: 12px; padding: 0px; color: inherit; white-space: pre-wrap; background-color: transparent; border-top-left-radius: 4px; border-top-right-radius: 4px; border-b
ottom-r
ight-radius: 4px; border-bottom-left-radius: 4px; border: 0px;">V = M#{ 'a_key' }.</code></pre>
<br>
However, if I try to do this (from the shell), I get a syntax error:<br>
<br>
> M#{'a_key'}.<br>
* 1: syntax error before: '}'<br>
<br>
I don't know if this is still planned as part of the syntax - the
EEP was released in April last year.<br>
<br>
<pre class="moz-signature" cols="72">--
Regards,
Pieter Bouwer</pre>
</body>
</html>