What is the easiest way for beginners to install a module?

后端 未结 6 1630
野趣味
野趣味 2020-12-11 17:45

I checked out rebar, but that seems way too complex. Maybe someone could post something that says, %Post your code here in the following rebar app

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-11 18:08

    I began learning erlang last year and what I found really helpful to get familiar with erlang was writing code in a simple notepad of your choice, and saving it as myapp_app.erl. Then I would open up the erlang console, and use the compile command, c, to compile my module which would then let me call my functions.

    > c(myapp_app).
    > myapp_app:start(a,b).
    

提交回复
热议问题