{"action":"created","issue":{"url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/984","repository_url":"https://api.github.com/repos/apple/swift-corelibs-foundation","labels_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/984/labels{/name}","comments_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/984/comments","events_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/984/events","html_url":"https://github.com/apple/swift-corelibs-foundation/pull/984","id":229220832,"number":984,"title":"Small cleanup: Use () -> ... instead of (Void) -> ... for no-argument closures","user":{"login":"slavapestov","id":66486,"avatar_url":"https://avatars2.githubusercontent.com/u/66486?v=3","gravatar_id":"","url":"https://api.github.com/users/slavapestov","html_url":"https://github.com/slavapestov","followers_url":"https://api.github.com/users/slavapestov/followers","following_url":"https://api.github.com/users/slavapestov/following{/other_user}","gists_url":"https://api.github.com/users/slavapestov/gists{/gist_id}","starred_url":"https://api.github.com/users/slavapestov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slavapestov/subscriptions","organizations_url":"https://api.github.com/users/slavapestov/orgs","repos_url":"https://api.github.com/users/slavapestov/repos","events_url":"https://api.github.com/users/slavapestov/events{/privacy}","received_events_url":"https://api.github.com/users/slavapestov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-05-17T02:30:55Z","updated_at":"2017-05-22T11:30:13Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apple/swift-corelibs-foundation/pulls/984","html_url":"https://github.com/apple/swift-corelibs-foundation/pull/984","diff_url":"https://github.com/apple/swift-corelibs-foundation/pull/984.diff","patch_url":"https://github.com/apple/swift-corelibs-foundation/pull/984.patch"},"body":"In Swift, (Void) -> Void is actually a function that takes\r\na single value of empty-tuple type, and not a function that\r\ntakes no arguments.\r\n\r\nSwift 3 largely ignored the distinction because of the implicit\r\n'tuple splat' behavior; in Swift 4, this behavior has been\r\neliminated as part of implementing SE-0110, so calling a function\r\nof type (Void) -> () now requires passing in an empty tuple,\r\nlike foo(()).\r\n\r\nI believe this is not intended behavior, so this patch changes\r\nthe functions in question to be written as () -> Void."},"comment":{"url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/comments/303074076","html_url":"https://github.com/apple/swift-corelibs-foundation/pull/984#issuecomment-303074076","issue_url":"https://api.github.com/repos/apple/swift-corelibs-foundation/issues/984","id":303074076,"user":{"login":"pushkarnk","id":4761859,"avatar_url":"https://avatars2.githubusercontent.com/u/4761859?v=3","gravatar_id":"","url":"https://api.github.com/users/pushkarnk","html_url":"https://github.com/pushkarnk","followers_url":"https://api.github.com/users/pushkarnk/followers","following_url":"https://api.github.com/users/pushkarnk/following{/other_user}","gists_url":"https://api.github.com/users/pushkarnk/gists{/gist_id}","starred_url":"https://api.github.com/users/pushkarnk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pushkarnk/subscriptions","organizations_url":"https://api.github.com/users/pushkarnk/orgs","repos_url":"https://api.github.com/users/pushkarnk/repos","events_url":"https://api.github.com/users/pushkarnk/events{/privacy}","received_events_url":"https://api.github.com/users/pushkarnk/received_events","type":"User","site_admin":false},"created_at":"2017-05-22T11:30:13Z","updated_at":"2017-05-22T11:30:13Z","body":"@mattrajca #988 is expected to fix the build errors on macOS ([this thread](https://lists.swift.org/pipermail/swift-corelibs-dev/Week-of-Mon-20170515/001197.html))"}}
{"actor":{"display_login":"pushkarnk"}}