Control flow
Control flow
Making decisions, repeating things, and handling what goes wrong.
making decisions
picking a case by a value, match status { "active" { … } else { … } }
nums.walk(n) { … }, ranges (0..10).step(2).walk(i), skip and stop
while n > 0 { … }, while true with stop
try, throw, error(code, message)
defer db.close() runs a call when the block ends, however it is left