{"action":"created","issue":{"url":"https://api.github.com/repos/apple/swift/issues/5062","repository_url":"https://api.github.com/repos/apple/swift","labels_url":"https://api.github.com/repos/apple/swift/issues/5062/labels{/name}","comments_url":"https://api.github.com/repos/apple/swift/issues/5062/comments","events_url":"https://api.github.com/repos/apple/swift/issues/5062/events","html_url":"https://github.com/apple/swift/pull/5062","id":179993405,"number":5062,"title":"[stdlib] Simplify implementation of `next()` to not need `defer`","user":{"login":"Nirma","id":882822,"avatar_url":"https://avatars.githubusercontent.com/u/882822?v=3","gravatar_id":"","url":"https://api.github.com/users/Nirma","html_url":"https://github.com/Nirma","followers_url":"https://api.github.com/users/Nirma/followers","following_url":"https://api.github.com/users/Nirma/following{/other_user}","gists_url":"https://api.github.com/users/Nirma/gists{/gist_id}","starred_url":"https://api.github.com/users/Nirma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nirma/subscriptions","organizations_url":"https://api.github.com/users/Nirma/orgs","repos_url":"https://api.github.com/users/Nirma/repos","events_url":"https://api.github.com/users/Nirma/events{/privacy}","received_events_url":"https://api.github.com/users/Nirma/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-29T09:13:56Z","updated_at":"2016-10-13T03:03:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apple/swift/pulls/5062","html_url":"https://github.com/apple/swift/pull/5062","diff_url":"https://github.com/apple/swift/pull/5062.diff","patch_url":"https://github.com/apple/swift/pull/5062.patch"},"body":"<!-- What's in this pull request? -->\r\nI thought this might be a little more simple and straight forward but how does it look?\r\n\r\nThanks!!\r\n\r\n<!-- If this pull request resolves any bugs in the Swift bug tracker, provide a link: -->\r\n\r\n<!--\r\nBefore merging this pull request, you must run the Swift continuous integration tests.\r\nFor information about triggering CI builds via @swift-ci, see:\r\nhttps://github.com/apple/swift/blob/master/docs/ContinuousIntegration.md#swift-ci\r\n\r\nThank you for your contribution to Swift!\r\n-->\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apple/swift/issues/comments/253401226","html_url":"https://github.com/apple/swift/pull/5062#issuecomment-253401226","issue_url":"https://api.github.com/repos/apple/swift/issues/5062","id":253401226,"user":{"login":"Nirma","id":882822,"avatar_url":"https://avatars.githubusercontent.com/u/882822?v=3","gravatar_id":"","url":"https://api.github.com/users/Nirma","html_url":"https://github.com/Nirma","followers_url":"https://api.github.com/users/Nirma/followers","following_url":"https://api.github.com/users/Nirma/following{/other_user}","gists_url":"https://api.github.com/users/Nirma/gists{/gist_id}","starred_url":"https://api.github.com/users/Nirma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nirma/subscriptions","organizations_url":"https://api.github.com/users/Nirma/orgs","repos_url":"https://api.github.com/users/Nirma/repos","events_url":"https://api.github.com/users/Nirma/events{/privacy}","received_events_url":"https://api.github.com/users/Nirma/received_events","type":"User","site_admin":false},"created_at":"2016-10-13T03:03:49Z","updated_at":"2016-10-13T03:03:49Z","body":"@moiseev Thanks for taking a look at the pull request!\r\nYes, I originally did not want to write a side effect inside of `map` but using map would result in two branches as you said. \r\n\r\nThe original code is not terrible at all, but I pushed a new commit that might be a little better than using the original `defer`.\r\n\r\nIts basically de-sugaring the `defer` block but how does it look?\r\n\r\nthanks!!"}}
{"actor":{"display_login":"Nirma"}}