{"action":"closed","number":1008,"pull_request":{"url":"https://api.github.com/repos/rust-lang/rfcs/pulls/1008","id":31797904,"html_url":"https://github.com/rust-lang/rfcs/pull/1008","diff_url":"https://github.com/rust-lang/rfcs/pull/1008.diff","patch_url":"https://github.com/rust-lang/rfcs/pull/1008.patch","issue_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1008","number":1008,"state":"closed","locked":false,"title":"Generic boolean operators","user":{"login":"ryanhiebert","id":425099,"avatar_url":"https://avatars.githubusercontent.com/u/425099?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanhiebert","html_url":"https://github.com/ryanhiebert","followers_url":"https://api.github.com/users/ryanhiebert/followers","following_url":"https://api.github.com/users/ryanhiebert/following{/other_user}","gists_url":"https://api.github.com/users/ryanhiebert/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanhiebert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanhiebert/subscriptions","organizations_url":"https://api.github.com/users/ryanhiebert/orgs","repos_url":"https://api.github.com/users/ryanhiebert/repos","events_url":"https://api.github.com/users/ryanhiebert/events{/privacy}","received_events_url":"https://api.github.com/users/ryanhiebert/received_events","type":"User","site_admin":false},"body":"Boolean operators, such as `==`, `!=`, `<`, etc, are currently defined by `std::cmp::{Eq,Ord}`, and require that they return `bool`. It would be a useful generalization to allow them to return alternative types, in similar form to `std::ops`.\r\n\r\nPrevious discussions on the Rust Reddit, Rust Internals Discourse, and IRC.\r\n\r\n* http://www.reddit.com/r/rust/comments/2xu8rn/boolean_operators_to_not_return_bools/\r\n* http://internals.rust-lang.org/t/pre-rfc-boolean-operators-that-dont-return-bool/1684\r\n\r\n[Rendered](https://github.com/ryanhiebert/rfcs/blob/generic-boolean-operators/text/0000-generic-boolean-operators.md)","created_at":"2015-03-24T05:13:55Z","updated_at":"2015-04-10T13:34:01Z","closed_at":"2015-04-10T13:34:01Z","merged_at":null,"merge_commit_sha":"1d028567d591b9972a2b16521b006dd4b3d9dbce","assignee":{"login":"nikomatsakis","id":155238,"avatar_url":"https://avatars.githubusercontent.com/u/155238?v=3","gravatar_id":"","url":"https://api.github.com/users/nikomatsakis","html_url":"https://github.com/nikomatsakis","followers_url":"https://api.github.com/users/nikomatsakis/followers","following_url":"https://api.github.com/users/nikomatsakis/following{/other_user}","gists_url":"https://api.github.com/users/nikomatsakis/gists{/gist_id}","starred_url":"https://api.github.com/users/nikomatsakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikomatsakis/subscriptions","organizations_url":"https://api.github.com/users/nikomatsakis/orgs","repos_url":"https://api.github.com/users/nikomatsakis/repos","events_url":"https://api.github.com/users/nikomatsakis/events{/privacy}","received_events_url":"https://api.github.com/users/nikomatsakis/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/rust-lang/rfcs/pulls/1008/commits","review_comments_url":"https://api.github.com/repos/rust-lang/rfcs/pulls/1008/comments","review_comment_url":"https://api.github.com/repos/rust-lang/rfcs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1008/comments","statuses_url":"https://api.github.com/repos/rust-lang/rfcs/statuses/2835f2d5b1a9c4333bb81c7f17d482b1ff81cc2d","head":{"label":"ryanhiebert:generic-boolean-operators","ref":"generic-boolean-operators","sha":"2835f2d5b1a9c4333bb81c7f17d482b1ff81cc2d","user":{"login":"ryanhiebert","id":425099,"avatar_url":"https://avatars.githubusercontent.com/u/425099?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanhiebert","html_url":"https://github.com/ryanhiebert","followers_url":"https://api.github.com/users/ryanhiebert/followers","following_url":"https://api.github.com/users/ryanhiebert/following{/other_user}","gists_url":"https://api.github.com/users/ryanhiebert/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanhiebert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanhiebert/subscriptions","organizations_url":"https://api.github.com/users/ryanhiebert/orgs","repos_url":"https://api.github.com/users/ryanhiebert/repos","events_url":"https://api.github.com/users/ryanhiebert/events{/privacy}","received_events_url":"https://api.github.com/users/ryanhiebert/received_events","type":"User","site_admin":false},"repo":{"id":32765160,"name":"rfcs","full_name":"ryanhiebert/rfcs","owner":{"login":"ryanhiebert","id":425099,"avatar_url":"https://avatars.githubusercontent.com/u/425099?v=3","gravatar_id":"","url":"https://api.github.com/users/ryanhiebert","html_url":"https://github.com/ryanhiebert","followers_url":"https://api.github.com/users/ryanhiebert/followers","following_url":"https://api.github.com/users/ryanhiebert/following{/other_user}","gists_url":"https://api.github.com/users/ryanhiebert/gists{/gist_id}","starred_url":"https://api.github.com/users/ryanhiebert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryanhiebert/subscriptions","organizations_url":"https://api.github.com/users/ryanhiebert/orgs","repos_url":"https://api.github.com/users/ryanhiebert/repos","events_url":"https://api.github.com/users/ryanhiebert/events{/privacy}","received_events_url":"https://api.github.com/users/ryanhiebert/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ryanhiebert/rfcs","description":"RFCs for changes to Rust","fork":true,"url":"https://api.github.com/repos/ryanhiebert/rfcs","forks_url":"https://api.github.com/repos/ryanhiebert/rfcs/forks","keys_url":"https://api.github.com/repos/ryanhiebert/rfcs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ryanhiebert/rfcs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ryanhiebert/rfcs/teams","hooks_url":"https://api.github.com/repos/ryanhiebert/rfcs/hooks","issue_events_url":"https://api.github.com/repos/ryanhiebert/rfcs/issues/events{/number}","events_url":"https://api.github.com/repos/ryanhiebert/rfcs/events","assignees_url":"https://api.github.com/repos/ryanhiebert/rfcs/assignees{/user}","branches_url":"https://api.github.com/repos/ryanhiebert/rfcs/branches{/branch}","tags_url":"https://api.github.com/repos/ryanhiebert/rfcs/tags","blobs_url":"https://api.github.com/repos/ryanhiebert/rfcs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ryanhiebert/rfcs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ryanhiebert/rfcs/git/refs{/sha}","trees_url":"https://api.github.com/repos/ryanhiebert/rfcs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ryanhiebert/rfcs/statuses/{sha}","languages_url":"https://api.github.com/repos/ryanhiebert/rfcs/languages","stargazers_url":"https://api.github.com/repos/ryanhiebert/rfcs/stargazers","contributors_url":"https://api.github.com/repos/ryanhiebert/rfcs/contributors","subscribers_url":"https://api.github.com/repos/ryanhiebert/rfcs/subscribers","subscription_url":"https://api.github.com/repos/ryanhiebert/rfcs/subscription","commits_url":"https://api.github.com/repos/ryanhiebert/rfcs/commits{/sha}","git_commits_url":"https://api.github.com/repos/ryanhiebert/rfcs/git/commits{/sha}","comments_url":"https://api.github.com/repos/ryanhiebert/rfcs/comments{/number}","issue_comment_url":"https://api.github.com/repos/ryanhiebert/rfcs/issues/comments{/number}","contents_url":"https://api.github.com/repos/ryanhiebert/rfcs/contents/{+path}","compare_url":"https://api.github.com/repos/ryanhiebert/rfcs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ryanhiebert/rfcs/merges","archive_url":"https://api.github.com/repos/ryanhiebert/rfcs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ryanhiebert/rfcs/downloads","issues_url":"https://api.github.com/repos/ryanhiebert/rfcs/issues{/number}","pulls_url":"https://api.github.com/repos/ryanhiebert/rfcs/pulls{/number}","milestones_url":"https://api.github.com/repos/ryanhiebert/rfcs/milestones{/number}","notifications_url":"https://api.github.com/repos/ryanhiebert/rfcs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ryanhiebert/rfcs/labels{/name}","releases_url":"https://api.github.com/repos/ryanhiebert/rfcs/releases{/id}","created_at":"2015-03-23T23:43:50Z","updated_at":"2015-03-21T08:19:26Z","pushed_at":"2015-03-25T20:14:31Z","git_url":"git://github.com/ryanhiebert/rfcs.git","ssh_url":"git@github.com:ryanhiebert/rfcs.git","clone_url":"https://github.com/ryanhiebert/rfcs.git","svn_url":"https://github.com/ryanhiebert/rfcs","homepage":"","size":1690,"stargazers_count":0,"watchers_count":0,"language":null,"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":"rust-lang:master","ref":"master","sha":"e4a774f89d97bd6264ef3b8e4e676cafbc20059c","user":{"login":"rust-lang","id":5430905,"avatar_url":"https://avatars.githubusercontent.com/u/5430905?v=3","gravatar_id":"","url":"https://api.github.com/users/rust-lang","html_url":"https://github.com/rust-lang","followers_url":"https://api.github.com/users/rust-lang/followers","following_url":"https://api.github.com/users/rust-lang/following{/other_user}","gists_url":"https://api.github.com/users/rust-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/rust-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rust-lang/subscriptions","organizations_url":"https://api.github.com/users/rust-lang/orgs","repos_url":"https://api.github.com/users/rust-lang/repos","events_url":"https://api.github.com/users/rust-lang/events{/privacy}","received_events_url":"https://api.github.com/users/rust-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":17527989,"name":"rfcs","full_name":"rust-lang/rfcs","owner":{"login":"rust-lang","id":5430905,"avatar_url":"https://avatars.githubusercontent.com/u/5430905?v=3","gravatar_id":"","url":"https://api.github.com/users/rust-lang","html_url":"https://github.com/rust-lang","followers_url":"https://api.github.com/users/rust-lang/followers","following_url":"https://api.github.com/users/rust-lang/following{/other_user}","gists_url":"https://api.github.com/users/rust-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/rust-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rust-lang/subscriptions","organizations_url":"https://api.github.com/users/rust-lang/orgs","repos_url":"https://api.github.com/users/rust-lang/repos","events_url":"https://api.github.com/users/rust-lang/events{/privacy}","received_events_url":"https://api.github.com/users/rust-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rust-lang/rfcs","description":"RFCs for changes to Rust","fork":false,"url":"https://api.github.com/repos/rust-lang/rfcs","forks_url":"https://api.github.com/repos/rust-lang/rfcs/forks","keys_url":"https://api.github.com/repos/rust-lang/rfcs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rust-lang/rfcs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rust-lang/rfcs/teams","hooks_url":"https://api.github.com/repos/rust-lang/rfcs/hooks","issue_events_url":"https://api.github.com/repos/rust-lang/rfcs/issues/events{/number}","events_url":"https://api.github.com/repos/rust-lang/rfcs/events","assignees_url":"https://api.github.com/repos/rust-lang/rfcs/assignees{/user}","branches_url":"https://api.github.com/repos/rust-lang/rfcs/branches{/branch}","tags_url":"https://api.github.com/repos/rust-lang/rfcs/tags","blobs_url":"https://api.github.com/repos/rust-lang/rfcs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rust-lang/rfcs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rust-lang/rfcs/git/refs{/sha}","trees_url":"https://api.github.com/repos/rust-lang/rfcs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rust-lang/rfcs/statuses/{sha}","languages_url":"https://api.github.com/repos/rust-lang/rfcs/languages","stargazers_url":"https://api.github.com/repos/rust-lang/rfcs/stargazers","contributors_url":"https://api.github.com/repos/rust-lang/rfcs/contributors","subscribers_url":"https://api.github.com/repos/rust-lang/rfcs/subscribers","subscription_url":"https://api.github.com/repos/rust-lang/rfcs/subscription","commits_url":"https://api.github.com/repos/rust-lang/rfcs/commits{/sha}","git_commits_url":"https://api.github.com/repos/rust-lang/rfcs/git/commits{/sha}","comments_url":"https://api.github.com/repos/rust-lang/rfcs/comments{/number}","issue_comment_url":"https://api.github.com/repos/rust-lang/rfcs/issues/comments{/number}","contents_url":"https://api.github.com/repos/rust-lang/rfcs/contents/{+path}","compare_url":"https://api.github.com/repos/rust-lang/rfcs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rust-lang/rfcs/merges","archive_url":"https://api.github.com/repos/rust-lang/rfcs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rust-lang/rfcs/downloads","issues_url":"https://api.github.com/repos/rust-lang/rfcs/issues{/number}","pulls_url":"https://api.github.com/repos/rust-lang/rfcs/pulls{/number}","milestones_url":"https://api.github.com/repos/rust-lang/rfcs/milestones{/number}","notifications_url":"https://api.github.com/repos/rust-lang/rfcs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rust-lang/rfcs/labels{/name}","releases_url":"https://api.github.com/repos/rust-lang/rfcs/releases{/id}","created_at":"2014-03-07T21:29:00Z","updated_at":"2015-04-08T05:28:38Z","pushed_at":"2015-04-10T13:32:12Z","git_url":"git://github.com/rust-lang/rfcs.git","ssh_url":"git@github.com:rust-lang/rfcs.git","clone_url":"https://github.com/rust-lang/rfcs.git","svn_url":"https://github.com/rust-lang/rfcs","homepage":"","size":11369,"stargazers_count":299,"watchers_count":299,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":188,"mirror_url":null,"open_issues_count":476,"forks":188,"open_issues":476,"watchers":299,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rust-lang/rfcs/pulls/1008"},"html":{"href":"https://github.com/rust-lang/rfcs/pull/1008"},"issue":{"href":"https://api.github.com/repos/rust-lang/rfcs/issues/1008"},"comments":{"href":"https://api.github.com/repos/rust-lang/rfcs/issues/1008/comments"},"review_comments":{"href":"https://api.github.com/repos/rust-lang/rfcs/pulls/1008/comments"},"review_comment":{"href":"https://api.github.com/repos/rust-lang/rfcs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rust-lang/rfcs/pulls/1008/commits"},"statuses":{"href":"https://api.github.com/repos/rust-lang/rfcs/statuses/2835f2d5b1a9c4333bb81c7f17d482b1ff81cc2d"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":3,"review_comments":1,"commits":2,"additions":123,"deletions":0,"changed_files":1}}