Skip to content

Instantly share code, notes, and snippets.

@olivaresf
Created January 6, 2016 04:14
Show Gist options
  • Save olivaresf/9a20b29101a0e898a7af to your computer and use it in GitHub Desktop.
Save olivaresf/9a20b29101a0e898a7af to your computer and use it in GitHub Desktop.
Two-closure syntax sucks
APIManager.signInUser("fer", password: "fer", successBlock: { (user) -> () in
print(user)
}) {
failureBlock: { error in
print(error)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment