[erlang-questions] bug: Can't have variables in keys?

Loïc Hoguin essen@REDACTED
Sat Feb 22 22:06:23 CET 2014


On 02/22/2014 10:02 PM, Charles Irvine wrote:
> I suppose that this is a known bug…..
>
> 9> X = x.
> x
> 10> #{X => y}.
> # 1: illegal use of variable ‘X’ in map

It's a known current limitation.

-- 
Loïc Hoguin
http://ninenines.eu



More information about the erlang-questions mailing list