{"action":"created","comment":{"url":"https://api.github.com/repos/bignerdranch/Freddy/pulls/comments/119872361","pull_request_review_id":41792877,"id":119872361,"diff_hunk":"@@ -69,7 +69,11 @@ class JSONSubscriptingTests: XCTestCase {\n     func testThatDictionaryOfProducesResidentsByName() {\n         do {\n             let residentsByName = try residentJSON.decodedDictionary(at: \"residentsByName\", type: Resident.self)\n+            #if swift(>=4.0)","path":"Tests/FreddyTests/JSONSubscriptingTests.swift","position":4,"original_position":4,"commit_id":"45e451bc54fabac4d8a86577e05317112d346aa7","original_commit_id":"45e451bc54fabac4d8a86577e05317112d346aa7","user":{"login":"jeremy-w","id":29010,"avatar_url":"https://avatars1.githubusercontent.com/u/29010?v=3","gravatar_id":"","url":"https://api.github.com/users/jeremy-w","html_url":"https://github.com/jeremy-w","followers_url":"https://api.github.com/users/jeremy-w/followers","following_url":"https://api.github.com/users/jeremy-w/following{/other_user}","gists_url":"https://api.github.com/users/jeremy-w/gists{/gist_id}","starred_url":"https://api.github.com/users/jeremy-w/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeremy-w/subscriptions","organizations_url":"https://api.github.com/users/jeremy-w/orgs","repos_url":"https://api.github.com/users/jeremy-w/repos","events_url":"https://api.github.com/users/jeremy-w/events{/privacy}","received_events_url":"https://api.github.com/users/jeremy-w/received_events","type":"User","site_admin":false},"body":"Ditto here. We can use the version proposed for Swift 4 also with Swift 3.\r\n\r\nWhich is really kinda weird when you see it in practice in the REPL:\r\n\r\n```\r\nWelcome to Apple Swift version 3.1 (swiftlang-802.0.53 clang-802.0.42). Type :help for assistance.\r\n\r\n  3> [\"a\": 1].map({ $1 })    \r\n$R1: [Int] = 1 value {       \r\n  [0] = 1                    \r\n}                            \r\n  4> [\"a\": 1].map({ $0.value })                            \r\n$R2: [Int] = 1 value {       \r\n  [0] = 1                    \r\n} \r\n```","created_at":"2017-06-02T14:35:42Z","updated_at":"2017-06-02T14:35:42Z","html_url":"https://github.com/bignerdranch/Freddy/pull/252#discussion_r119872361","pull_request_url":"https://api.github.com/repos/bignerdranch/Freddy/pulls/252","_links":{"self":{"href":"https://api.github.com/repos/bignerdranch/Freddy/pulls/comments/119872361"},"html":{"href":"https://github.com/bignerdranch/Freddy/pull/252#discussion_r119872361"},"pull_request":{"href":"https://api.github.com/repos/bignerdranch/Freddy/pulls/252"}}},"pull_request":{"url":"https://api.github.com/repos/bignerdranch/Freddy/pulls/252","id":123726802,"html_url":"https://github.com/bignerdranch/Freddy/pull/252","diff_url":"https://github.com/bignerdranch/Freddy/pull/252.diff","patch_url":"https://github.com/bignerdranch/Freddy/pull/252.patch","issue_url":"https://api.github.com/repos/bignerdranch/Freddy/issues/252","number":252,"state":"open","locked":false,"title":"add swift 4 support","user":{"login":"volodg","id":32120,"avatar_url":"https://avatars2.githubusercontent.com/u/32120?v=3","gravatar_id":"","url":"https://api.github.com/users/volodg","html_url":"https://github.com/volodg","followers_url":"https://api.github.com/users/volodg/followers","following_url":"https://api.github.com/users/volodg/following{/other_user}","gists_url":"https://api.github.com/users/volodg/gists{/gist_id}","starred_url":"https://api.github.com/users/volodg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/volodg/subscriptions","organizations_url":"https://api.github.com/users/volodg/orgs","repos_url":"https://api.github.com/users/volodg/repos","events_url":"https://api.github.com/users/volodg/events{/privacy}","received_events_url":"https://api.github.com/users/volodg/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-06-02T14:13:03Z","updated_at":"2017-06-02T14:35:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b5c75e081d1d2190acab54e747d8bdbeacf10593","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/bignerdranch/Freddy/pulls/252/commits","review_comments_url":"https://api.github.com/repos/bignerdranch/Freddy/pulls/252/comments","review_comment_url":"https://api.github.com/repos/bignerdranch/Freddy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bignerdranch/Freddy/issues/252/comments","statuses_url":"https://api.github.com/repos/bignerdranch/Freddy/statuses/45e451bc54fabac4d8a86577e05317112d346aa7","head":{"label":"volodg:swift-4_0","ref":"swift-4_0","sha":"45e451bc54fabac4d8a86577e05317112d346aa7","user":{"login":"volodg","id":32120,"avatar_url":"https://avatars2.githubusercontent.com/u/32120?v=3","gravatar_id":"","url":"https://api.github.com/users/volodg","html_url":"https://github.com/volodg","followers_url":"https://api.github.com/users/volodg/followers","following_url":"https://api.github.com/users/volodg/following{/other_user}","gists_url":"https://api.github.com/users/volodg/gists{/gist_id}","starred_url":"https://api.github.com/users/volodg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/volodg/subscriptions","organizations_url":"https://api.github.com/users/volodg/orgs","repos_url":"https://api.github.com/users/volodg/repos","events_url":"https://api.github.com/users/volodg/events{/privacy}","received_events_url":"https://api.github.com/users/volodg/received_events","type":"User","site_admin":false},"repo":{"id":88822264,"name":"Freddy","full_name":"volodg/Freddy","owner":{"login":"volodg","id":32120,"avatar_url":"https://avatars2.githubusercontent.com/u/32120?v=3","gravatar_id":"","url":"https://api.github.com/users/volodg","html_url":"https://github.com/volodg","followers_url":"https://api.github.com/users/volodg/followers","following_url":"https://api.github.com/users/volodg/following{/other_user}","gists_url":"https://api.github.com/users/volodg/gists{/gist_id}","starred_url":"https://api.github.com/users/volodg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/volodg/subscriptions","organizations_url":"https://api.github.com/users/volodg/orgs","repos_url":"https://api.github.com/users/volodg/repos","events_url":"https://api.github.com/users/volodg/events{/privacy}","received_events_url":"https://api.github.com/users/volodg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/volodg/Freddy","description":"A reusable framework for parsing JSON in Swift.","fork":true,"url":"https://api.github.com/repos/volodg/Freddy","forks_url":"https://api.github.com/repos/volodg/Freddy/forks","keys_url":"https://api.github.com/repos/volodg/Freddy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/volodg/Freddy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/volodg/Freddy/teams","hooks_url":"https://api.github.com/repos/volodg/Freddy/hooks","issue_events_url":"https://api.github.com/repos/volodg/Freddy/issues/events{/number}","events_url":"https://api.github.com/repos/volodg/Freddy/events","assignees_url":"https://api.github.com/repos/volodg/Freddy/assignees{/user}","branches_url":"https://api.github.com/repos/volodg/Freddy/branches{/branch}","tags_url":"https://api.github.com/repos/volodg/Freddy/tags","blobs_url":"https://api.github.com/repos/volodg/Freddy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/volodg/Freddy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/volodg/Freddy/git/refs{/sha}","trees_url":"https://api.github.com/repos/volodg/Freddy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/volodg/Freddy/statuses/{sha}","languages_url":"https://api.github.com/repos/volodg/Freddy/languages","stargazers_url":"https://api.github.com/repos/volodg/Freddy/stargazers","contributors_url":"https://api.github.com/repos/volodg/Freddy/contributors","subscribers_url":"https://api.github.com/repos/volodg/Freddy/subscribers","subscription_url":"https://api.github.com/repos/volodg/Freddy/subscription","commits_url":"https://api.github.com/repos/volodg/Freddy/commits{/sha}","git_commits_url":"https://api.github.com/repos/volodg/Freddy/git/commits{/sha}","comments_url":"https://api.github.com/repos/volodg/Freddy/comments{/number}","issue_comment_url":"https://api.github.com/repos/volodg/Freddy/issues/comments{/number}","contents_url":"https://api.github.com/repos/volodg/Freddy/contents/{+path}","compare_url":"https://api.github.com/repos/volodg/Freddy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/volodg/Freddy/merges","archive_url":"https://api.github.com/repos/volodg/Freddy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/volodg/Freddy/downloads","issues_url":"https://api.github.com/repos/volodg/Freddy/issues{/number}","pulls_url":"https://api.github.com/repos/volodg/Freddy/pulls{/number}","milestones_url":"https://api.github.com/repos/volodg/Freddy/milestones{/number}","notifications_url":"https://api.github.com/repos/volodg/Freddy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/volodg/Freddy/labels{/name}","releases_url":"https://api.github.com/repos/volodg/Freddy/releases{/id}","deployments_url":"https://api.github.com/repos/volodg/Freddy/deployments","created_at":"2017-04-20T04:54:40Z","updated_at":"2017-04-20T04:54:42Z","pushed_at":"2017-06-02T14:12:47Z","git_url":"git://github.com/volodg/Freddy.git","ssh_url":"git@github.com:volodg/Freddy.git","clone_url":"https://github.com/volodg/Freddy.git","svn_url":"https://github.com/volodg/Freddy","homepage":null,"size":1419,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":false,"has_projects":true,"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":"bignerdranch:master","ref":"master","sha":"ea05c031fc3407aa23f63f60344bdaf315b99fbf","user":{"login":"bignerdranch","id":230455,"avatar_url":"https://avatars0.githubusercontent.com/u/230455?v=3","gravatar_id":"","url":"https://api.github.com/users/bignerdranch","html_url":"https://github.com/bignerdranch","followers_url":"https://api.github.com/users/bignerdranch/followers","following_url":"https://api.github.com/users/bignerdranch/following{/other_user}","gists_url":"https://api.github.com/users/bignerdranch/gists{/gist_id}","starred_url":"https://api.github.com/users/bignerdranch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bignerdranch/subscriptions","organizations_url":"https://api.github.com/users/bignerdranch/orgs","repos_url":"https://api.github.com/users/bignerdranch/repos","events_url":"https://api.github.com/users/bignerdranch/events{/privacy}","received_events_url":"https://api.github.com/users/bignerdranch/received_events","type":"Organization","site_admin":false},"repo":{"id":32896921,"name":"Freddy","full_name":"bignerdranch/Freddy","owner":{"login":"bignerdranch","id":230455,"avatar_url":"https://avatars0.githubusercontent.com/u/230455?v=3","gravatar_id":"","url":"https://api.github.com/users/bignerdranch","html_url":"https://github.com/bignerdranch","followers_url":"https://api.github.com/users/bignerdranch/followers","following_url":"https://api.github.com/users/bignerdranch/following{/other_user}","gists_url":"https://api.github.com/users/bignerdranch/gists{/gist_id}","starred_url":"https://api.github.com/users/bignerdranch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bignerdranch/subscriptions","organizations_url":"https://api.github.com/users/bignerdranch/orgs","repos_url":"https://api.github.com/users/bignerdranch/repos","events_url":"https://api.github.com/users/bignerdranch/events{/privacy}","received_events_url":"https://api.github.com/users/bignerdranch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bignerdranch/Freddy","description":"A reusable framework for parsing JSON in Swift.","fork":false,"url":"https://api.github.com/repos/bignerdranch/Freddy","forks_url":"https://api.github.com/repos/bignerdranch/Freddy/forks","keys_url":"https://api.github.com/repos/bignerdranch/Freddy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bignerdranch/Freddy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bignerdranch/Freddy/teams","hooks_url":"https://api.github.com/repos/bignerdranch/Freddy/hooks","issue_events_url":"https://api.github.com/repos/bignerdranch/Freddy/issues/events{/number}","events_url":"https://api.github.com/repos/bignerdranch/Freddy/events","assignees_url":"https://api.github.com/repos/bignerdranch/Freddy/assignees{/user}","branches_url":"https://api.github.com/repos/bignerdranch/Freddy/branches{/branch}","tags_url":"https://api.github.com/repos/bignerdranch/Freddy/tags","blobs_url":"https://api.github.com/repos/bignerdranch/Freddy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bignerdranch/Freddy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bignerdranch/Freddy/git/refs{/sha}","trees_url":"https://api.github.com/repos/bignerdranch/Freddy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bignerdranch/Freddy/statuses/{sha}","languages_url":"https://api.github.com/repos/bignerdranch/Freddy/languages","stargazers_url":"https://api.github.com/repos/bignerdranch/Freddy/stargazers","contributors_url":"https://api.github.com/repos/bignerdranch/Freddy/contributors","subscribers_url":"https://api.github.com/repos/bignerdranch/Freddy/subscribers","subscription_url":"https://api.github.com/repos/bignerdranch/Freddy/subscription","commits_url":"https://api.github.com/repos/bignerdranch/Freddy/commits{/sha}","git_commits_url":"https://api.github.com/repos/bignerdranch/Freddy/git/commits{/sha}","comments_url":"https://api.github.com/repos/bignerdranch/Freddy/comments{/number}","issue_comment_url":"https://api.github.com/repos/bignerdranch/Freddy/issues/comments{/number}","contents_url":"https://api.github.com/repos/bignerdranch/Freddy/contents/{+path}","compare_url":"https://api.github.com/repos/bignerdranch/Freddy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bignerdranch/Freddy/merges","archive_url":"https://api.github.com/repos/bignerdranch/Freddy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bignerdranch/Freddy/downloads","issues_url":"https://api.github.com/repos/bignerdranch/Freddy/issues{/number}","pulls_url":"https://api.github.com/repos/bignerdranch/Freddy/pulls{/number}","milestones_url":"https://api.github.com/repos/bignerdranch/Freddy/milestones{/number}","notifications_url":"https://api.github.com/repos/bignerdranch/Freddy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bignerdranch/Freddy/labels{/name}","releases_url":"https://api.github.com/repos/bignerdranch/Freddy/releases{/id}","deployments_url":"https://api.github.com/repos/bignerdranch/Freddy/deployments","created_at":"2015-03-25T23:29:34Z","updated_at":"2017-05-29T07:12:37Z","pushed_at":"2017-06-02T14:13:04Z","git_url":"git://github.com/bignerdranch/Freddy.git","ssh_url":"git@github.com:bignerdranch/Freddy.git","clone_url":"https://github.com/bignerdranch/Freddy.git","svn_url":"https://github.com/bignerdranch/Freddy","homepage":null,"size":1422,"stargazers_count":1084,"watchers_count":1084,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":83,"mirror_url":null,"open_issues_count":24,"forks":83,"open_issues":24,"watchers":1084,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bignerdranch/Freddy/pulls/252"},"html":{"href":"https://github.com/bignerdranch/Freddy/pull/252"},"issue":{"href":"https://api.github.com/repos/bignerdranch/Freddy/issues/252"},"comments":{"href":"https://api.github.com/repos/bignerdranch/Freddy/issues/252/comments"},"review_comments":{"href":"https://api.github.com/repos/bignerdranch/Freddy/pulls/252/comments"},"review_comment":{"href":"https://api.github.com/repos/bignerdranch/Freddy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bignerdranch/Freddy/pulls/252/commits"},"statuses":{"href":"https://api.github.com/repos/bignerdranch/Freddy/statuses/45e451bc54fabac4d8a86577e05317112d346aa7"}}}}
{"actor":{"display_login":"jeremy-w"}}