[erlang-questions] Accessing a single value from MAPS

Richard Carlsson <>
Thu Oct 8 20:59:50 CEST 2015

On Thu, Oct 8, 2015 at 4:47 PM, Fred Hebert <> wrote:

> On 10/08, Fred Hebert wrote:
>> Map.f.'d.e'.#{=>ok} to go fetch the final 'ok'. Either that or you·
>> support little chaining, but there's still plenty of ways to make this·
>> terrible.
> Oh also, if any form of chaining is required, it is now impossible to know
> if Map.3.5 is supposed to be Map.(3.5) or two maps, one with the key 3 and
> the key 5.

Since tokenization (which is greedy) happens before parsing, Map.3.5 would
always be parsed as Map.(3.5). You'd have to add parentheses to get
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20151008/ea3368f8/attachment.html>

More information about the erlang-questions mailing list