[erlang-bugs] R17 RC 2: Accessing Map
Pieter Bouwer
pieterb@REDACTED
Tue Mar 25 13:47:19 CET 2014
Hi,
Sorry if this is a duplicate, but I couldn't find a bug report dealing
with this.
In the EEP (43 - http://www.erlang.org/eeps/eep-0043.html) 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:
|V = M#{ 'a_key' }.|
However, if I try to do this (from the shell), I get a syntax error:
> M#{'a_key'}.
* 1: syntax error before: '}'
I don't know if this is still planned as part of the syntax - the EEP
was released in April last year.
--
Regards,
Pieter Bouwer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20140325/87aa882f/attachment.htm>
More information about the erlang-bugs
mailing list