Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why do I get syntax error before: '{'?

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.

like image 693
Yehor Nemov Avatar asked Jan 27 '26 12:01

Yehor Nemov


1 Answers

Because maps were introduced in Erlang 17.

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

like image 171
Lol4t0 Avatar answered Jan 31 '26 05:01

Lol4t0



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!