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

故事扮演 提交于 2020-01-14 13:55:43

问题


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.


回答1:


Because maps were introduced in Erlang 17.

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



来源:https://stackoverflow.com/questions/31589190/why-do-i-get-syntax-error-before

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!