Syntax pick 4: Conditionals
if is an expression, no parens around the condition, no braces (end-closed, pick 1). Trailing if allowed only on single-line return guards. No unless. No ternary.
Related
- p16-one-line-if-value (the one-line
ifas a value, 14 Sep) - base-example
- p05-pattern-matching