Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// Router Function
private func turnLights(on shouldTurnLightsOn: Bool)
if shouldTurnLightsOn
else { turnExteriorLightsOff() }
// When an if statment has only 1 thing to execute i like to write it
// at the same line with the "if" "else" word, it makes reading your code more fluent.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment