Why am I getting a syntax error before: '{'?

While playing with Erlang it starts working I ran into a fancy syntax error in a trivial use case (simple map initialization). Are there any suggestions why this is happening?

1> #{ "key" => 42}.

  • 1: syntax error before: '{'

Details: Erlang R16B03 (erts-5.10.4), Eshell V5.10.4.

+3


source to share


1 answer


Since maps were introduced in Erlang 17.



You need to update your installation or not use maps.

+8


source







All Articles