{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/2175","repository_url":"https://api.github.com/repos/rust-lang/rfcs","labels_url":"https://api.github.com/repos/rust-lang/rfcs/issues/2175/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rfcs/issues/2175/comments","events_url":"https://api.github.com/repos/rust-lang/rfcs/issues/2175/events","html_url":"https://github.com/rust-lang/rfcs/pull/2175","id":265658041,"number":2175,"title":"RFC: or-patterns in if / while let expressions","user":{"login":"Centril","id":855702,"avatar_url":"https://avatars2.githubusercontent.com/u/855702?v=4","gravatar_id":"","url":"https://api.github.com/users/Centril","html_url":"https://github.com/Centril","followers_url":"https://api.github.com/users/Centril/followers","following_url":"https://api.github.com/users/Centril/following{/other_user}","gists_url":"https://api.github.com/users/Centril/gists{/gist_id}","starred_url":"https://api.github.com/users/Centril/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Centril/subscriptions","organizations_url":"https://api.github.com/users/Centril/orgs","repos_url":"https://api.github.com/users/Centril/repos","events_url":"https://api.github.com/users/Centril/events{/privacy}","received_events_url":"https://api.github.com/users/Centril/received_events","type":"User","site_admin":false},"labels":[{"id":211667886,"url":"https://api.github.com/repos/rust-lang/rfcs/labels/T-lang","name":"T-lang","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-10-16T06:22:23Z","updated_at":"2017-10-18T17:16:48Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/rust-lang/rfcs/pulls/2175","html_url":"https://github.com/rust-lang/rfcs/pull/2175","diff_url":"https://github.com/rust-lang/rfcs/pull/2175.diff","patch_url":"https://github.com/rust-lang/rfcs/pull/2175.patch"},"body":"[Rendered.](https://github.com/Centril/rfcs/blob/rfc/if-while-or-patterns/text/0000-if-while-or-patterns.md)\r\n\r\nEnables the use of or-patterns in `if let` and `while let` constructs as in:\r\n```rust\r\nif let A(x) | B(x) | ... = expr {\r\n    do_stuff_with(x);\r\n}\r\n\r\nwhile let A(x) | B(x) | ... = expr {\r\n    do_stuff_with(x);\r\n}\r\n```\r\n\r\n### Acknowledgements & ping\r\n\r\n+ @scottmcm, fixing typos, and helping me with the RFC in general."},"comment":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/comments/337662745","html_url":"https://github.com/rust-lang/rfcs/pull/2175#issuecomment-337662745","issue_url":"https://api.github.com/repos/rust-lang/rfcs/issues/2175","id":337662745,"user":{"login":"nugend","id":18049,"avatar_url":"https://avatars3.githubusercontent.com/u/18049?v=4","gravatar_id":"","url":"https://api.github.com/users/nugend","html_url":"https://github.com/nugend","followers_url":"https://api.github.com/users/nugend/followers","following_url":"https://api.github.com/users/nugend/following{/other_user}","gists_url":"https://api.github.com/users/nugend/gists{/gist_id}","starred_url":"https://api.github.com/users/nugend/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nugend/subscriptions","organizations_url":"https://api.github.com/users/nugend/orgs","repos_url":"https://api.github.com/users/nugend/repos","events_url":"https://api.github.com/users/nugend/events{/privacy}","received_events_url":"https://api.github.com/users/nugend/received_events","type":"User","site_admin":false},"created_at":"2017-10-18T17:16:48Z","updated_at":"2017-10-18T17:16:48Z","author_association":"NONE","body":"I just saw this RFC in TWIR and funnily enough, a related crate was nominated for crate of the week: https://docs.rs/if_chain/0.1.2/if_chain/#multiple-patterns"}}
{"actor":{"display_login":"nugend"}}