The language basics
This part is the vocabulary of every program: the values and their types, a name bound to a value, the numbers and the strings the language ships, the atoms that label a result, the truthiness rule, the conditions that choose a branch, and the operators a guard may use.
Two rules of Elixir show up here for the first time and stay for the rest of the course: = is a match and not an assignment, and only false and nil are falsy.
2.1
Values and types
integers, floats, atoms, binaries and lists, and the type of a value at run time
Open
2.2
Variables
the match on the left of =, rebinding, snake_case names, and the pin
Open
2.3
Numbers
integers of any size, floats, div and rem, and the conversions between them
Open
2.4
Strings
double quotes, interpolation, heredocs, and the String functions a script lives on
Open
2.5
Atoms
the constant with a name, true and nil, aliases, and when an atom is the right key
Open
2.6
Truthiness: only false and nil
what a condition accepts, and why zero and the empty string are true
Open
2.7
Conditions
the two keywords, the do block, and a function that returns the branch it took
Open
2.8
Operators and the guard-safe subset
arithmetic, comparison, boolean and in, and what a guard may call
Open