{"action":"created","comment":{"url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/pulls/comments/48958750","id":48958750,"diff_hunk":"@@ -478,7 +478,32 @@ doSomethingWithCompletion() {\n \n Using shorthand syntax is preferable in situations where the arguments are well understood and can be expressed in a few lines.\n \n-\n ```Swift\n let sortedNames = names.sort { $0 < $1 }\n ```\n+####Multiple Closures\n+\n+When a function takes multiple closures as arguments it can be difficult to read. To keep it clean, use a new line for each argument and avoid trailing closures.\n+\n+**For example:**\n+```swift\n+UIView.animateWithDuration(\n+    SomeTimeValue,\n+    animations: {\n+        // Do stuff\n+    },\n+    completion: { _ in\n+        // Do stuff\n+    }\n+)\n+```\n+**Not**\n+\n+(Even though the default spacing and syntax when you do this in xcode might end up looking like this)\n+```swift\n+UIView.animateWithDuration(SomeTimeValue, animations: {\n+    // Do stuff\n+    }) { _ in","path":"README.md","position":46,"original_position":46,"commit_id":"83494e111bf083cf5a8d7c901fd090c6e69e66de","original_commit_id":"83494e111bf083cf5a8d7c901fd090c6e69e66de","user":{"login":"paulrolfe","id":5570541,"avatar_url":"https://avatars.githubusercontent.com/u/5570541?v=3","gravatar_id":"","url":"https://api.github.com/users/paulrolfe","html_url":"https://github.com/paulrolfe","followers_url":"https://api.github.com/users/paulrolfe/followers","following_url":"https://api.github.com/users/paulrolfe/following{/other_user}","gists_url":"https://api.github.com/users/paulrolfe/gists{/gist_id}","starred_url":"https://api.github.com/users/paulrolfe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulrolfe/subscriptions","organizations_url":"https://api.github.com/users/paulrolfe/orgs","repos_url":"https://api.github.com/users/paulrolfe/repos","events_url":"https://api.github.com/users/paulrolfe/events{/privacy}","received_events_url":"https://api.github.com/users/paulrolfe/received_events","type":"User","site_admin":false},"body":"Don't think so. What do you mean?","created_at":"2016-01-06T13:57:57Z","updated_at":"2016-01-06T13:57:57Z","html_url":"https://github.com/IntrepidPursuits/swift-style-guide/pull/8#discussion_r48958750","pull_request_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/pulls/comments/48958750"},"html":{"href":"https://github.com/IntrepidPursuits/swift-style-guide/pull/8#discussion_r48958750"},"pull_request":{"href":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/pulls/8","id":55146039,"html_url":"https://github.com/IntrepidPursuits/swift-style-guide/pull/8","diff_url":"https://github.com/IntrepidPursuits/swift-style-guide/pull/8.diff","patch_url":"https://github.com/IntrepidPursuits/swift-style-guide/pull/8.patch","issue_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/issues/8","number":8,"state":"open","locked":false,"title":"Multiple closure functions","user":{"login":"paulrolfe","id":5570541,"avatar_url":"https://avatars.githubusercontent.com/u/5570541?v=3","gravatar_id":"","url":"https://api.github.com/users/paulrolfe","html_url":"https://github.com/paulrolfe","followers_url":"https://api.github.com/users/paulrolfe/followers","following_url":"https://api.github.com/users/paulrolfe/following{/other_user}","gists_url":"https://api.github.com/users/paulrolfe/gists{/gist_id}","starred_url":"https://api.github.com/users/paulrolfe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulrolfe/subscriptions","organizations_url":"https://api.github.com/users/paulrolfe/orgs","repos_url":"https://api.github.com/users/paulrolfe/repos","events_url":"https://api.github.com/users/paulrolfe/events{/privacy}","received_events_url":"https://api.github.com/users/paulrolfe/received_events","type":"User","site_admin":false},"body":"See the issue for more context if needed.","created_at":"2016-01-05T21:33:55Z","updated_at":"2016-01-06T13:57:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5219caf39fdb6005cfa275283fd9e0496539cf8d","assignee":{"login":"brightredchilli","id":751191,"avatar_url":"https://avatars.githubusercontent.com/u/751191?v=3","gravatar_id":"","url":"https://api.github.com/users/brightredchilli","html_url":"https://github.com/brightredchilli","followers_url":"https://api.github.com/users/brightredchilli/followers","following_url":"https://api.github.com/users/brightredchilli/following{/other_user}","gists_url":"https://api.github.com/users/brightredchilli/gists{/gist_id}","starred_url":"https://api.github.com/users/brightredchilli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brightredchilli/subscriptions","organizations_url":"https://api.github.com/users/brightredchilli/orgs","repos_url":"https://api.github.com/users/brightredchilli/repos","events_url":"https://api.github.com/users/brightredchilli/events{/privacy}","received_events_url":"https://api.github.com/users/brightredchilli/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/pulls/8/commits","review_comments_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/pulls/8/comments","review_comment_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/pulls/comments{/number}","comments_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/issues/8/comments","statuses_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/statuses/83494e111bf083cf5a8d7c901fd090c6e69e66de","head":{"label":"IntrepidPursuits:paulrolfe-patch-1","ref":"paulrolfe-patch-1","sha":"83494e111bf083cf5a8d7c901fd090c6e69e66de","user":{"login":"IntrepidPursuits","id":2151424,"avatar_url":"https://avatars.githubusercontent.com/u/2151424?v=3","gravatar_id":"","url":"https://api.github.com/users/IntrepidPursuits","html_url":"https://github.com/IntrepidPursuits","followers_url":"https://api.github.com/users/IntrepidPursuits/followers","following_url":"https://api.github.com/users/IntrepidPursuits/following{/other_user}","gists_url":"https://api.github.com/users/IntrepidPursuits/gists{/gist_id}","starred_url":"https://api.github.com/users/IntrepidPursuits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IntrepidPursuits/subscriptions","organizations_url":"https://api.github.com/users/IntrepidPursuits/orgs","repos_url":"https://api.github.com/users/IntrepidPursuits/repos","events_url":"https://api.github.com/users/IntrepidPursuits/events{/privacy}","received_events_url":"https://api.github.com/users/IntrepidPursuits/received_events","type":"Organization","site_admin":false},"repo":{"id":39341380,"name":"swift-style-guide","full_name":"IntrepidPursuits/swift-style-guide","owner":{"login":"IntrepidPursuits","id":2151424,"avatar_url":"https://avatars.githubusercontent.com/u/2151424?v=3","gravatar_id":"","url":"https://api.github.com/users/IntrepidPursuits","html_url":"https://github.com/IntrepidPursuits","followers_url":"https://api.github.com/users/IntrepidPursuits/followers","following_url":"https://api.github.com/users/IntrepidPursuits/following{/other_user}","gists_url":"https://api.github.com/users/IntrepidPursuits/gists{/gist_id}","starred_url":"https://api.github.com/users/IntrepidPursuits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IntrepidPursuits/subscriptions","organizations_url":"https://api.github.com/users/IntrepidPursuits/orgs","repos_url":"https://api.github.com/users/IntrepidPursuits/repos","events_url":"https://api.github.com/users/IntrepidPursuits/events{/privacy}","received_events_url":"https://api.github.com/users/IntrepidPursuits/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/IntrepidPursuits/swift-style-guide","description":"Style guide & coding conventions for Swift projects","fork":true,"url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide","forks_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/forks","keys_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/teams","hooks_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/hooks","issue_events_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/issues/events{/number}","events_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/events","assignees_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/assignees{/user}","branches_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/branches{/branch}","tags_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/tags","blobs_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/git/refs{/sha}","trees_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/statuses/{sha}","languages_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/languages","stargazers_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/stargazers","contributors_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/contributors","subscribers_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/subscribers","subscription_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/subscription","commits_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/commits{/sha}","git_commits_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/git/commits{/sha}","comments_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/comments{/number}","issue_comment_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/issues/comments{/number}","contents_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/contents/{+path}","compare_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/merges","archive_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/downloads","issues_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/issues{/number}","pulls_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/pulls{/number}","milestones_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/milestones{/number}","notifications_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/labels{/name}","releases_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/releases{/id}","created_at":"2015-07-19T16:58:06Z","updated_at":"2016-01-05T20:19:41Z","pushed_at":"2016-01-05T21:33:55Z","git_url":"git://github.com/IntrepidPursuits/swift-style-guide.git","ssh_url":"git@github.com:IntrepidPursuits/swift-style-guide.git","clone_url":"https://github.com/IntrepidPursuits/swift-style-guide.git","svn_url":"https://github.com/IntrepidPursuits/swift-style-guide","homepage":null,"size":69,"stargazers_count":2,"watchers_count":2,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":2,"default_branch":"master"}},"base":{"label":"IntrepidPursuits:master","ref":"master","sha":"b20b543978bba9eba56ba08d59647674993f58fa","user":{"login":"IntrepidPursuits","id":2151424,"avatar_url":"https://avatars.githubusercontent.com/u/2151424?v=3","gravatar_id":"","url":"https://api.github.com/users/IntrepidPursuits","html_url":"https://github.com/IntrepidPursuits","followers_url":"https://api.github.com/users/IntrepidPursuits/followers","following_url":"https://api.github.com/users/IntrepidPursuits/following{/other_user}","gists_url":"https://api.github.com/users/IntrepidPursuits/gists{/gist_id}","starred_url":"https://api.github.com/users/IntrepidPursuits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IntrepidPursuits/subscriptions","organizations_url":"https://api.github.com/users/IntrepidPursuits/orgs","repos_url":"https://api.github.com/users/IntrepidPursuits/repos","events_url":"https://api.github.com/users/IntrepidPursuits/events{/privacy}","received_events_url":"https://api.github.com/users/IntrepidPursuits/received_events","type":"Organization","site_admin":false},"repo":{"id":39341380,"name":"swift-style-guide","full_name":"IntrepidPursuits/swift-style-guide","owner":{"login":"IntrepidPursuits","id":2151424,"avatar_url":"https://avatars.githubusercontent.com/u/2151424?v=3","gravatar_id":"","url":"https://api.github.com/users/IntrepidPursuits","html_url":"https://github.com/IntrepidPursuits","followers_url":"https://api.github.com/users/IntrepidPursuits/followers","following_url":"https://api.github.com/users/IntrepidPursuits/following{/other_user}","gists_url":"https://api.github.com/users/IntrepidPursuits/gists{/gist_id}","starred_url":"https://api.github.com/users/IntrepidPursuits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IntrepidPursuits/subscriptions","organizations_url":"https://api.github.com/users/IntrepidPursuits/orgs","repos_url":"https://api.github.com/users/IntrepidPursuits/repos","events_url":"https://api.github.com/users/IntrepidPursuits/events{/privacy}","received_events_url":"https://api.github.com/users/IntrepidPursuits/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/IntrepidPursuits/swift-style-guide","description":"Style guide & coding conventions for Swift projects","fork":true,"url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide","forks_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/forks","keys_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/teams","hooks_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/hooks","issue_events_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/issues/events{/number}","events_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/events","assignees_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/assignees{/user}","branches_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/branches{/branch}","tags_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/tags","blobs_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/git/refs{/sha}","trees_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/statuses/{sha}","languages_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/languages","stargazers_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/stargazers","contributors_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/contributors","subscribers_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/subscribers","subscription_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/subscription","commits_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/commits{/sha}","git_commits_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/git/commits{/sha}","comments_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/comments{/number}","issue_comment_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/issues/comments{/number}","contents_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/contents/{+path}","compare_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/merges","archive_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/downloads","issues_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/issues{/number}","pulls_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/pulls{/number}","milestones_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/milestones{/number}","notifications_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/labels{/name}","releases_url":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/releases{/id}","created_at":"2015-07-19T16:58:06Z","updated_at":"2016-01-05T20:19:41Z","pushed_at":"2016-01-05T21:33:55Z","git_url":"git://github.com/IntrepidPursuits/swift-style-guide.git","ssh_url":"git@github.com:IntrepidPursuits/swift-style-guide.git","clone_url":"https://github.com/IntrepidPursuits/swift-style-guide.git","svn_url":"https://github.com/IntrepidPursuits/swift-style-guide","homepage":null,"size":69,"stargazers_count":2,"watchers_count":2,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/pulls/8"},"html":{"href":"https://github.com/IntrepidPursuits/swift-style-guide/pull/8"},"issue":{"href":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/issues/8"},"comments":{"href":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/IntrepidPursuits/swift-style-guide/statuses/83494e111bf083cf5a8d7c901fd090c6e69e66de"}}}}