{"action":"opened","number":10,"pull_request":{"url":"https://api.github.com/repos/HIT-Alibaba/interview/pulls/10","id":86537854,"html_url":"https://github.com/HIT-Alibaba/interview/pull/10","diff_url":"https://github.com/HIT-Alibaba/interview/pull/10.diff","patch_url":"https://github.com/HIT-Alibaba/interview/pull/10.patch","issue_url":"https://api.github.com/repos/HIT-Alibaba/interview/issues/10","number":10,"state":"open","locked":false,"title":"Update Class.md","user":{"login":"sunbohong","id":7285119,"avatar_url":"https://avatars.githubusercontent.com/u/7285119?v=3","gravatar_id":"","url":"https://api.github.com/users/sunbohong","html_url":"https://github.com/sunbohong","followers_url":"https://api.github.com/users/sunbohong/followers","following_url":"https://api.github.com/users/sunbohong/following{/other_user}","gists_url":"https://api.github.com/users/sunbohong/gists{/gist_id}","starred_url":"https://api.github.com/users/sunbohong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunbohong/subscriptions","organizations_url":"https://api.github.com/users/sunbohong/orgs","repos_url":"https://api.github.com/users/sunbohong/repos","events_url":"https://api.github.com/users/sunbohong/events{/privacy}","received_events_url":"https://api.github.com/users/sunbohong/received_events","type":"User","site_admin":false},"body":"”如果 Extension 中声明的方法没有实现，编译器会给出 Warning，使用 Category 则不会。“\r\n\r\n删除理由：该信息过于古老。\r\n\r\n我已经删除了 4.x 版本 Xcode，所以无法进行测试。但是根据一份 2007 年的文件显示，clang 在设计时就已经支持 **警告 category 中未实现的方法**；所以，随着 Xcode 4 的推出，并在后续版本中默认设置 clang 为前端。该功能已经在多年前的 Xcode 中就已经实现。\r\n\r\nhttp://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/method-undef-category-warn-1.m?view=markup&pathrev=42531\r\n\r\n\r\n“Extension 可以添加成员变量。”\r\n同样的，大概在3、4年前，ObjC 就已经支持了在 Extension 中添加成员变量了。这是 extension 和 category 的一个非常重大的区别。","created_at":"2016-09-23T15:58:11Z","updated_at":"2016-09-23T15:58:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/HIT-Alibaba/interview/pulls/10/commits","review_comments_url":"https://api.github.com/repos/HIT-Alibaba/interview/pulls/10/comments","review_comment_url":"https://api.github.com/repos/HIT-Alibaba/interview/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HIT-Alibaba/interview/issues/10/comments","statuses_url":"https://api.github.com/repos/HIT-Alibaba/interview/statuses/66c456775597901e0c01aeb44ddfb817cb2162ca","head":{"label":"sunbohong:master","ref":"master","sha":"66c456775597901e0c01aeb44ddfb817cb2162ca","user":{"login":"sunbohong","id":7285119,"avatar_url":"https://avatars.githubusercontent.com/u/7285119?v=3","gravatar_id":"","url":"https://api.github.com/users/sunbohong","html_url":"https://github.com/sunbohong","followers_url":"https://api.github.com/users/sunbohong/followers","following_url":"https://api.github.com/users/sunbohong/following{/other_user}","gists_url":"https://api.github.com/users/sunbohong/gists{/gist_id}","starred_url":"https://api.github.com/users/sunbohong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunbohong/subscriptions","organizations_url":"https://api.github.com/users/sunbohong/orgs","repos_url":"https://api.github.com/users/sunbohong/repos","events_url":"https://api.github.com/users/sunbohong/events{/privacy}","received_events_url":"https://api.github.com/users/sunbohong/received_events","type":"User","site_admin":false},"repo":{"id":69035471,"name":"interview","full_name":"sunbohong/interview","owner":{"login":"sunbohong","id":7285119,"avatar_url":"https://avatars.githubusercontent.com/u/7285119?v=3","gravatar_id":"","url":"https://api.github.com/users/sunbohong","html_url":"https://github.com/sunbohong","followers_url":"https://api.github.com/users/sunbohong/followers","following_url":"https://api.github.com/users/sunbohong/following{/other_user}","gists_url":"https://api.github.com/users/sunbohong/gists{/gist_id}","starred_url":"https://api.github.com/users/sunbohong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sunbohong/subscriptions","organizations_url":"https://api.github.com/users/sunbohong/orgs","repos_url":"https://api.github.com/users/sunbohong/repos","events_url":"https://api.github.com/users/sunbohong/events{/privacy}","received_events_url":"https://api.github.com/users/sunbohong/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sunbohong/interview","description":"笔试面试知识整理","fork":true,"url":"https://api.github.com/repos/sunbohong/interview","forks_url":"https://api.github.com/repos/sunbohong/interview/forks","keys_url":"https://api.github.com/repos/sunbohong/interview/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sunbohong/interview/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sunbohong/interview/teams","hooks_url":"https://api.github.com/repos/sunbohong/interview/hooks","issue_events_url":"https://api.github.com/repos/sunbohong/interview/issues/events{/number}","events_url":"https://api.github.com/repos/sunbohong/interview/events","assignees_url":"https://api.github.com/repos/sunbohong/interview/assignees{/user}","branches_url":"https://api.github.com/repos/sunbohong/interview/branches{/branch}","tags_url":"https://api.github.com/repos/sunbohong/interview/tags","blobs_url":"https://api.github.com/repos/sunbohong/interview/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sunbohong/interview/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sunbohong/interview/git/refs{/sha}","trees_url":"https://api.github.com/repos/sunbohong/interview/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sunbohong/interview/statuses/{sha}","languages_url":"https://api.github.com/repos/sunbohong/interview/languages","stargazers_url":"https://api.github.com/repos/sunbohong/interview/stargazers","contributors_url":"https://api.github.com/repos/sunbohong/interview/contributors","subscribers_url":"https://api.github.com/repos/sunbohong/interview/subscribers","subscription_url":"https://api.github.com/repos/sunbohong/interview/subscription","commits_url":"https://api.github.com/repos/sunbohong/interview/commits{/sha}","git_commits_url":"https://api.github.com/repos/sunbohong/interview/git/commits{/sha}","comments_url":"https://api.github.com/repos/sunbohong/interview/comments{/number}","issue_comment_url":"https://api.github.com/repos/sunbohong/interview/issues/comments{/number}","contents_url":"https://api.github.com/repos/sunbohong/interview/contents/{+path}","compare_url":"https://api.github.com/repos/sunbohong/interview/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sunbohong/interview/merges","archive_url":"https://api.github.com/repos/sunbohong/interview/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sunbohong/interview/downloads","issues_url":"https://api.github.com/repos/sunbohong/interview/issues{/number}","pulls_url":"https://api.github.com/repos/sunbohong/interview/pulls{/number}","milestones_url":"https://api.github.com/repos/sunbohong/interview/milestones{/number}","notifications_url":"https://api.github.com/repos/sunbohong/interview/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sunbohong/interview/labels{/name}","releases_url":"https://api.github.com/repos/sunbohong/interview/releases{/id}","deployments_url":"https://api.github.com/repos/sunbohong/interview/deployments","created_at":"2016-09-23T15:06:20Z","updated_at":"2016-09-23T15:06:22Z","pushed_at":"2016-09-23T15:45:51Z","git_url":"git://github.com/sunbohong/interview.git","ssh_url":"git@github.com:sunbohong/interview.git","clone_url":"https://github.com/sunbohong/interview.git","svn_url":"https://github.com/sunbohong/interview","homepage":"http://hit-alibaba.github.io/interview/index.html","size":16651,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"HIT-Alibaba:master","ref":"master","sha":"6a2521f6f6dd1c0cd72b51c226f751b740284014","user":{"login":"HIT-Alibaba","id":8833929,"avatar_url":"https://avatars.githubusercontent.com/u/8833929?v=3","gravatar_id":"","url":"https://api.github.com/users/HIT-Alibaba","html_url":"https://github.com/HIT-Alibaba","followers_url":"https://api.github.com/users/HIT-Alibaba/followers","following_url":"https://api.github.com/users/HIT-Alibaba/following{/other_user}","gists_url":"https://api.github.com/users/HIT-Alibaba/gists{/gist_id}","starred_url":"https://api.github.com/users/HIT-Alibaba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HIT-Alibaba/subscriptions","organizations_url":"https://api.github.com/users/HIT-Alibaba/orgs","repos_url":"https://api.github.com/users/HIT-Alibaba/repos","events_url":"https://api.github.com/users/HIT-Alibaba/events{/privacy}","received_events_url":"https://api.github.com/users/HIT-Alibaba/received_events","type":"Organization","site_admin":false},"repo":{"id":30110748,"name":"interview","full_name":"HIT-Alibaba/interview","owner":{"login":"HIT-Alibaba","id":8833929,"avatar_url":"https://avatars.githubusercontent.com/u/8833929?v=3","gravatar_id":"","url":"https://api.github.com/users/HIT-Alibaba","html_url":"https://github.com/HIT-Alibaba","followers_url":"https://api.github.com/users/HIT-Alibaba/followers","following_url":"https://api.github.com/users/HIT-Alibaba/following{/other_user}","gists_url":"https://api.github.com/users/HIT-Alibaba/gists{/gist_id}","starred_url":"https://api.github.com/users/HIT-Alibaba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HIT-Alibaba/subscriptions","organizations_url":"https://api.github.com/users/HIT-Alibaba/orgs","repos_url":"https://api.github.com/users/HIT-Alibaba/repos","events_url":"https://api.github.com/users/HIT-Alibaba/events{/privacy}","received_events_url":"https://api.github.com/users/HIT-Alibaba/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HIT-Alibaba/interview","description":"笔试面试知识整理","fork":false,"url":"https://api.github.com/repos/HIT-Alibaba/interview","forks_url":"https://api.github.com/repos/HIT-Alibaba/interview/forks","keys_url":"https://api.github.com/repos/HIT-Alibaba/interview/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HIT-Alibaba/interview/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HIT-Alibaba/interview/teams","hooks_url":"https://api.github.com/repos/HIT-Alibaba/interview/hooks","issue_events_url":"https://api.github.com/repos/HIT-Alibaba/interview/issues/events{/number}","events_url":"https://api.github.com/repos/HIT-Alibaba/interview/events","assignees_url":"https://api.github.com/repos/HIT-Alibaba/interview/assignees{/user}","branches_url":"https://api.github.com/repos/HIT-Alibaba/interview/branches{/branch}","tags_url":"https://api.github.com/repos/HIT-Alibaba/interview/tags","blobs_url":"https://api.github.com/repos/HIT-Alibaba/interview/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HIT-Alibaba/interview/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HIT-Alibaba/interview/git/refs{/sha}","trees_url":"https://api.github.com/repos/HIT-Alibaba/interview/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HIT-Alibaba/interview/statuses/{sha}","languages_url":"https://api.github.com/repos/HIT-Alibaba/interview/languages","stargazers_url":"https://api.github.com/repos/HIT-Alibaba/interview/stargazers","contributors_url":"https://api.github.com/repos/HIT-Alibaba/interview/contributors","subscribers_url":"https://api.github.com/repos/HIT-Alibaba/interview/subscribers","subscription_url":"https://api.github.com/repos/HIT-Alibaba/interview/subscription","commits_url":"https://api.github.com/repos/HIT-Alibaba/interview/commits{/sha}","git_commits_url":"https://api.github.com/repos/HIT-Alibaba/interview/git/commits{/sha}","comments_url":"https://api.github.com/repos/HIT-Alibaba/interview/comments{/number}","issue_comment_url":"https://api.github.com/repos/HIT-Alibaba/interview/issues/comments{/number}","contents_url":"https://api.github.com/repos/HIT-Alibaba/interview/contents/{+path}","compare_url":"https://api.github.com/repos/HIT-Alibaba/interview/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HIT-Alibaba/interview/merges","archive_url":"https://api.github.com/repos/HIT-Alibaba/interview/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HIT-Alibaba/interview/downloads","issues_url":"https://api.github.com/repos/HIT-Alibaba/interview/issues{/number}","pulls_url":"https://api.github.com/repos/HIT-Alibaba/interview/pulls{/number}","milestones_url":"https://api.github.com/repos/HIT-Alibaba/interview/milestones{/number}","notifications_url":"https://api.github.com/repos/HIT-Alibaba/interview/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HIT-Alibaba/interview/labels{/name}","releases_url":"https://api.github.com/repos/HIT-Alibaba/interview/releases{/id}","deployments_url":"https://api.github.com/repos/HIT-Alibaba/interview/deployments","created_at":"2015-01-31T11:45:01Z","updated_at":"2016-09-23T08:28:53Z","pushed_at":"2016-09-16T01:36:58Z","git_url":"git://github.com/HIT-Alibaba/interview.git","ssh_url":"git@github.com:HIT-Alibaba/interview.git","clone_url":"https://github.com/HIT-Alibaba/interview.git","svn_url":"https://github.com/HIT-Alibaba/interview","homepage":"http://hit-alibaba.github.io/interview/index.html","size":16651,"stargazers_count":833,"watchers_count":833,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":199,"mirror_url":null,"open_issues_count":1,"forks":199,"open_issues":1,"watchers":833,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HIT-Alibaba/interview/pulls/10"},"html":{"href":"https://github.com/HIT-Alibaba/interview/pull/10"},"issue":{"href":"https://api.github.com/repos/HIT-Alibaba/interview/issues/10"},"comments":{"href":"https://api.github.com/repos/HIT-Alibaba/interview/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/HIT-Alibaba/interview/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/HIT-Alibaba/interview/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HIT-Alibaba/interview/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/HIT-Alibaba/interview/statuses/66c456775597901e0c01aeb44ddfb817cb2162ca"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":2,"changed_files":1}}
{"actor":{"display_login":"sunbohong"}}