Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Sample on inconsistent code style in Swift.
func aSampleFunction() {
let something = Something()
if something.isFree {
print("hey this is free!")
} else { print("and this is not") }
if (something.isStrange) print("this is strange")
else { print("who am I to decide") }
if something.isBroken
{
print("we need to fix this")
}
else
{
print("this is good as new!")
}
print("these brackets made me crazy!")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.