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