Hello World in Erlang
Every programming journey starts with Hello World. Let’s write our first Erlang program and explore what makes this concurrent functional language tick.
The Code
Create a file named hello.erl: …
Every programming journey starts with Hello World. Let’s write our first Erlang program and explore what makes this concurrent functional language tick.
Create a file named hello.erl: …
Erlang is a dynamically typed, functional language where all data is immutable and variables are single-assignment. Once a variable is bound to a value, it cannot be changed within the same scope. …
Read more →Operators in Erlang are expressions that combine values to produce new values. Because Erlang is a functional language with immutable data, operators never mutate their arguments — they always return …
Read more →Control flow is how a program decides what to do next. Most languages reach for if, for, and while to make those decisions. Erlang has an if, but as a multi-paradigm functional language it leans on …
Functions are not just a feature of Erlang - they are the entire program. As a functional language, Erlang has no statements, loops, or mutable variables to fall back on. Everything you do is …
Read more →Input and output are where a pure functional language meets the messy outside world. Erlang keeps its data immutable and its functions honest, but reading a keypress or writing a file is inherently a …
Read more →Showing 1–6 of 6 posts (page 1 of 1)