{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/pulls/1","id":52635540,"html_url":"https://github.com/BryanHoke/swift-corelibs-foundation/pull/1","diff_url":"https://github.com/BryanHoke/swift-corelibs-foundation/pull/1.diff","patch_url":"https://github.com/BryanHoke/swift-corelibs-foundation/pull/1.patch","issue_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/issues/1","number":1,"state":"open","locked":false,"title":"Prefer guard statement for early exit.","user":{"login":"BryanHoke","id":4493850,"avatar_url":"https://avatars.githubusercontent.com/u/4493850?v=3","gravatar_id":"","url":"https://api.github.com/users/BryanHoke","html_url":"https://github.com/BryanHoke","followers_url":"https://api.github.com/users/BryanHoke/followers","following_url":"https://api.github.com/users/BryanHoke/following{/other_user}","gists_url":"https://api.github.com/users/BryanHoke/gists{/gist_id}","starred_url":"https://api.github.com/users/BryanHoke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BryanHoke/subscriptions","organizations_url":"https://api.github.com/users/BryanHoke/orgs","repos_url":"https://api.github.com/users/BryanHoke/repos","events_url":"https://api.github.com/users/BryanHoke/events{/privacy}","received_events_url":"https://api.github.com/users/BryanHoke/received_events","type":"User","site_admin":false},"body":"This is a question as much as it is a pull request: which style of early exit is more idiomatic in this case? Do we prefer if-not because it is more concise? Or do we prefer guard because it more closely represents our intent?","created_at":"2015-12-04T06:48:28Z","updated_at":"2015-12-04T06:48:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1f26f87f178a6cc82c83ed9a8c0755f3fa388106","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/pulls/1/commits","review_comments_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/pulls/1/comments","review_comment_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/issues/1/comments","statuses_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/statuses/4f78a086504292efc6afd3684e45e81dedb27cdf","head":{"label":"BryanHoke:BryanHoke-patch-1","ref":"BryanHoke-patch-1","sha":"4f78a086504292efc6afd3684e45e81dedb27cdf","user":{"login":"BryanHoke","id":4493850,"avatar_url":"https://avatars.githubusercontent.com/u/4493850?v=3","gravatar_id":"","url":"https://api.github.com/users/BryanHoke","html_url":"https://github.com/BryanHoke","followers_url":"https://api.github.com/users/BryanHoke/followers","following_url":"https://api.github.com/users/BryanHoke/following{/other_user}","gists_url":"https://api.github.com/users/BryanHoke/gists{/gist_id}","starred_url":"https://api.github.com/users/BryanHoke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BryanHoke/subscriptions","organizations_url":"https://api.github.com/users/BryanHoke/orgs","repos_url":"https://api.github.com/users/BryanHoke/repos","events_url":"https://api.github.com/users/BryanHoke/events{/privacy}","received_events_url":"https://api.github.com/users/BryanHoke/received_events","type":"User","site_admin":false},"repo":{"id":47386038,"name":"swift-corelibs-foundation","full_name":"BryanHoke/swift-corelibs-foundation","owner":{"login":"BryanHoke","id":4493850,"avatar_url":"https://avatars.githubusercontent.com/u/4493850?v=3","gravatar_id":"","url":"https://api.github.com/users/BryanHoke","html_url":"https://github.com/BryanHoke","followers_url":"https://api.github.com/users/BryanHoke/followers","following_url":"https://api.github.com/users/BryanHoke/following{/other_user}","gists_url":"https://api.github.com/users/BryanHoke/gists{/gist_id}","starred_url":"https://api.github.com/users/BryanHoke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BryanHoke/subscriptions","organizations_url":"https://api.github.com/users/BryanHoke/orgs","repos_url":"https://api.github.com/users/BryanHoke/repos","events_url":"https://api.github.com/users/BryanHoke/events{/privacy}","received_events_url":"https://api.github.com/users/BryanHoke/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BryanHoke/swift-corelibs-foundation","description":"The Foundation Project, providing core utilities, internationalization, and OS independence","fork":true,"url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation","forks_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/forks","keys_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/teams","hooks_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/hooks","issue_events_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/issues/events{/number}","events_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/events","assignees_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/assignees{/user}","branches_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/branches{/branch}","tags_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/tags","blobs_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/git/refs{/sha}","trees_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/statuses/{sha}","languages_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/languages","stargazers_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/stargazers","contributors_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/contributors","subscribers_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/subscribers","subscription_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/subscription","commits_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/commits{/sha}","git_commits_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/git/commits{/sha}","comments_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/comments{/number}","issue_comment_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/issues/comments{/number}","contents_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/contents/{+path}","compare_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/merges","archive_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/downloads","issues_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/issues{/number}","pulls_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/pulls{/number}","milestones_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/milestones{/number}","notifications_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/labels{/name}","releases_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/releases{/id}","created_at":"2015-12-04T06:31:29Z","updated_at":"2015-12-04T06:31:46Z","pushed_at":"2015-12-04T06:48:28Z","git_url":"git://github.com/BryanHoke/swift-corelibs-foundation.git","ssh_url":"git@github.com:BryanHoke/swift-corelibs-foundation.git","clone_url":"https://github.com/BryanHoke/swift-corelibs-foundation.git","svn_url":"https://github.com/BryanHoke/swift-corelibs-foundation","homepage":"swift.org","size":2454,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"BryanHoke:master","ref":"master","sha":"34ee75ca55664e503c07c7d86f128de03bc2a54d","user":{"login":"BryanHoke","id":4493850,"avatar_url":"https://avatars.githubusercontent.com/u/4493850?v=3","gravatar_id":"","url":"https://api.github.com/users/BryanHoke","html_url":"https://github.com/BryanHoke","followers_url":"https://api.github.com/users/BryanHoke/followers","following_url":"https://api.github.com/users/BryanHoke/following{/other_user}","gists_url":"https://api.github.com/users/BryanHoke/gists{/gist_id}","starred_url":"https://api.github.com/users/BryanHoke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BryanHoke/subscriptions","organizations_url":"https://api.github.com/users/BryanHoke/orgs","repos_url":"https://api.github.com/users/BryanHoke/repos","events_url":"https://api.github.com/users/BryanHoke/events{/privacy}","received_events_url":"https://api.github.com/users/BryanHoke/received_events","type":"User","site_admin":false},"repo":{"id":47386038,"name":"swift-corelibs-foundation","full_name":"BryanHoke/swift-corelibs-foundation","owner":{"login":"BryanHoke","id":4493850,"avatar_url":"https://avatars.githubusercontent.com/u/4493850?v=3","gravatar_id":"","url":"https://api.github.com/users/BryanHoke","html_url":"https://github.com/BryanHoke","followers_url":"https://api.github.com/users/BryanHoke/followers","following_url":"https://api.github.com/users/BryanHoke/following{/other_user}","gists_url":"https://api.github.com/users/BryanHoke/gists{/gist_id}","starred_url":"https://api.github.com/users/BryanHoke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BryanHoke/subscriptions","organizations_url":"https://api.github.com/users/BryanHoke/orgs","repos_url":"https://api.github.com/users/BryanHoke/repos","events_url":"https://api.github.com/users/BryanHoke/events{/privacy}","received_events_url":"https://api.github.com/users/BryanHoke/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/BryanHoke/swift-corelibs-foundation","description":"The Foundation Project, providing core utilities, internationalization, and OS independence","fork":true,"url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation","forks_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/forks","keys_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/teams","hooks_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/hooks","issue_events_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/issues/events{/number}","events_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/events","assignees_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/assignees{/user}","branches_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/branches{/branch}","tags_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/tags","blobs_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/git/refs{/sha}","trees_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/statuses/{sha}","languages_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/languages","stargazers_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/stargazers","contributors_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/contributors","subscribers_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/subscribers","subscription_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/subscription","commits_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/commits{/sha}","git_commits_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/git/commits{/sha}","comments_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/comments{/number}","issue_comment_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/issues/comments{/number}","contents_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/contents/{+path}","compare_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/merges","archive_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/downloads","issues_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/issues{/number}","pulls_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/pulls{/number}","milestones_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/milestones{/number}","notifications_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/labels{/name}","releases_url":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/releases{/id}","created_at":"2015-12-04T06:31:29Z","updated_at":"2015-12-04T06:31:46Z","pushed_at":"2015-12-04T06:48:28Z","git_url":"git://github.com/BryanHoke/swift-corelibs-foundation.git","ssh_url":"git@github.com:BryanHoke/swift-corelibs-foundation.git","clone_url":"https://github.com/BryanHoke/swift-corelibs-foundation.git","svn_url":"https://github.com/BryanHoke/swift-corelibs-foundation","homepage":"swift.org","size":2454,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/pulls/1"},"html":{"href":"https://github.com/BryanHoke/swift-corelibs-foundation/pull/1"},"issue":{"href":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/issues/1"},"comments":{"href":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/BryanHoke/swift-corelibs-foundation/statuses/4f78a086504292efc6afd3684e45e81dedb27cdf"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}