- expressions (
if ... then ... else ...) - comprehensions (list-building loops)
- relation clauses + guards (
when)
Conditionals: if / then / else
if is an expression, so it always produces a value.
Guards: when
Relation clauses can be guarded with when.
Looping by building: comprehensions
Instead of afor statement, Tide has list comprehensions:
when:
The vibe
Tide tries to keep the surface area small:- expressions for branching
- comprehensions for iteration
- relations for “rules”