[erlang-questions] Accessing a single value from MAPS

Fred Hebert <>
Thu Oct 8 16:47:44 CEST 2015


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. I guess parentheses could make it work. But even 
with records this was kind of messy.


More information about the erlang-questions mailing list