Slide 30
Slide 30 text
•Replace common and (overlooked) if statements
and if let pyramids with early-fail guard
statements
•Put multiple guard conditions on their own lines,
allows breakpointing each line, commenting out
conditions etc.
•Even better, break each condition into it’s own
guard statement