Sample on inconsistent code style in Swift.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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