3

While playing with Erlang getting started section I have met bizarre syntax error on trivial use case (simple map initialization). Are there any suggestion why does that happen?

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

  • 1: syntax error before: '{'

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

Community
  • 1
  • 1
Yehor Nemov
  • 907
  • 2
  • 16
  • 31

1 Answers1

9

Because maps were introduced in Erlang 17.

You have to upgrade your installation or do not use maps.

Lol4t0
  • 12,444
  • 4
  • 29
  • 65