Learning the basics of Erlang and understanding Functional programming paradigm.
sudo apt-get install erlang
erl (prompt)
erlc helloworld.erl (compiling)
erl -noshell -s helloworld start -s init stop (executing)
Useful links https://learnyousomeerlang.com/content
NOTES: some useful points
Variable Binding
- Can't bind with different values to already bound unless it's the same (uses pattern matching to check)
Syntax
- Always end program with a .
- Intermediate statements ,
- Use capital letter for variable names
- Make file and module name same
- start/0 -> function start takes 0 arguments