Canonical guidance

Use when

Avoid

Preferred pattern

if ok {
	use()
}

Anti-pattern

Explanation: This is tempting if you prefer another house style, but semicolon insertion changes the token stream and breaks the syntax.

Why

Related pages

Sources