{"action":"created","issue":{"url":"https://api.github.com/repos/apple/swift/issues/17960","repository_url":"https://api.github.com/repos/apple/swift","labels_url":"https://api.github.com/repos/apple/swift/issues/17960/labels{/name}","comments_url":"https://api.github.com/repos/apple/swift/issues/17960/comments","events_url":"https://api.github.com/repos/apple/swift/issues/17960/events","html_url":"https://github.com/apple/swift/pull/17960","id":341318275,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxNDk2Mzgy","number":17960,"title":"[Parser] Support \"<\" unary operator in #if swift() and #if compiler() expressions","user":{"login":"danielmartin","id":1573717,"node_id":"MDQ6VXNlcjE1NzM3MTc=","avatar_url":"https://avatars2.githubusercontent.com/u/1573717?v=4","gravatar_id":"","url":"https://api.github.com/users/danielmartin","html_url":"https://github.com/danielmartin","followers_url":"https://api.github.com/users/danielmartin/followers","following_url":"https://api.github.com/users/danielmartin/following{/other_user}","gists_url":"https://api.github.com/users/danielmartin/gists{/gist_id}","starred_url":"https://api.github.com/users/danielmartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielmartin/subscriptions","organizations_url":"https://api.github.com/users/danielmartin/orgs","repos_url":"https://api.github.com/users/danielmartin/repos","events_url":"https://api.github.com/users/danielmartin/events{/privacy}","received_events_url":"https://api.github.com/users/danielmartin/received_events","type":"User","site_admin":false},"labels":[{"id":295491817,"node_id":"MDU6TGFiZWwyOTU0OTE4MTc=","url":"https://api.github.com/repos/apple/swift/labels/swift-evolution-pending-discussion","name":"swift-evolution-pending-discussion","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-07-15T12:44:33Z","updated_at":"2018-09-10T15:44:15Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/apple/swift/pulls/17960","html_url":"https://github.com/apple/swift/pull/17960","diff_url":"https://github.com/apple/swift/pull/17960.diff","patch_url":"https://github.com/apple/swift/pull/17960.patch"},"body":"**Swift-evolution proposal:** https://github.com/apple/swift-evolution/pull/877\r\nResolves [SR-6852](https://bugs.swift.org/browse/SR-6852).\r\n\r\nUntil now, only \">=\" was supported in #if swift() expressions, for example:\r\n\r\n```\r\n#if swift(>=2.1)\r\n#endif\r\n```\r\n\r\nThis means that if we want to evaluate code only when the language version is\r\nless than a particular version we need to do the following:\r\n\r\n```\r\n#if !swift(>=2.1)\r\n#endif\r\n```\r\n\r\nAn alternative to make this more readable (the \"!\" can be easily missed in a code\r\nreview) is to introduce another supported unary operator, \"<\". The previous\r\nexample could be rewritten like this:\r\n\r\n```\r\n#if swift(<2.1)\r\n#endif\r\n```\r\n\r\nThis commit adds support for that unary operator, along with some tests."},"comment":{"url":"https://api.github.com/repos/apple/swift/issues/comments/419960448","html_url":"https://github.com/apple/swift/pull/17960#issuecomment-419960448","issue_url":"https://api.github.com/repos/apple/swift/issues/17960","id":419960448,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTk2MDQ0OA==","user":{"login":"jrose-apple","id":15097531,"node_id":"MDQ6VXNlcjE1MDk3NTMx","avatar_url":"https://avatars2.githubusercontent.com/u/15097531?v=4","gravatar_id":"","url":"https://api.github.com/users/jrose-apple","html_url":"https://github.com/jrose-apple","followers_url":"https://api.github.com/users/jrose-apple/followers","following_url":"https://api.github.com/users/jrose-apple/following{/other_user}","gists_url":"https://api.github.com/users/jrose-apple/gists{/gist_id}","starred_url":"https://api.github.com/users/jrose-apple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrose-apple/subscriptions","organizations_url":"https://api.github.com/users/jrose-apple/orgs","repos_url":"https://api.github.com/users/jrose-apple/repos","events_url":"https://api.github.com/users/jrose-apple/events{/privacy}","received_events_url":"https://api.github.com/users/jrose-apple/received_events","type":"User","site_admin":false},"created_at":"2018-09-10T15:44:15Z","updated_at":"2018-09-10T15:44:15Z","author_association":"MEMBER","body":"@tkremenek, I think this is waiting on you.\r\n\r\n@swift-ci Please test"}}
{"actor":{"display_login":"jrose-apple"}}