{"action":"created","issue":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/1303","repository_url":"https://api.github.com/repos/rust-lang/rfcs","labels_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1303/labels{/name}","comments_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1303/comments","events_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1303/events","html_url":"https://github.com/rust-lang/rfcs/pull/1303","id":109424677,"number":1303,"title":"Add a `let...else` expression, similar to Swift's `guard let...else`","user":{"login":"mbrubeck","id":5920,"avatar_url":"https://avatars.githubusercontent.com/u/5920?v=3","gravatar_id":"","url":"https://api.github.com/users/mbrubeck","html_url":"https://github.com/mbrubeck","followers_url":"https://api.github.com/users/mbrubeck/followers","following_url":"https://api.github.com/users/mbrubeck/following{/other_user}","gists_url":"https://api.github.com/users/mbrubeck/gists{/gist_id}","starred_url":"https://api.github.com/users/mbrubeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbrubeck/subscriptions","organizations_url":"https://api.github.com/users/mbrubeck/orgs","repos_url":"https://api.github.com/users/mbrubeck/repos","events_url":"https://api.github.com/users/mbrubeck/events{/privacy}","received_events_url":"https://api.github.com/users/mbrubeck/received_events","type":"User","site_admin":false},"labels":[{"id":216585564,"url":"https://api.github.com/repos/rust-lang/rfcs/labels/final-comment-period","name":"final-comment-period","color":"207de5","default":false},{"id":96561714,"url":"https://api.github.com/repos/rust-lang/rfcs/labels/postponed","name":"postponed","color":"fbca04","default":false},{"id":211667886,"url":"https://api.github.com/repos/rust-lang/rfcs/labels/T-lang","name":"T-lang","color":"bfd4f2","default":false}],"state":"closed","locked":false,"assignee":{"login":"aturon","id":709807,"avatar_url":"https://avatars.githubusercontent.com/u/709807?v=3","gravatar_id":"","url":"https://api.github.com/users/aturon","html_url":"https://github.com/aturon","followers_url":"https://api.github.com/users/aturon/followers","following_url":"https://api.github.com/users/aturon/following{/other_user}","gists_url":"https://api.github.com/users/aturon/gists{/gist_id}","starred_url":"https://api.github.com/users/aturon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aturon/subscriptions","organizations_url":"https://api.github.com/users/aturon/orgs","repos_url":"https://api.github.com/users/aturon/repos","events_url":"https://api.github.com/users/aturon/events{/privacy}","received_events_url":"https://api.github.com/users/aturon/received_events","type":"User","site_admin":false},"assignees":[{"login":"aturon","id":709807,"avatar_url":"https://avatars.githubusercontent.com/u/709807?v=3","gravatar_id":"","url":"https://api.github.com/users/aturon","html_url":"https://github.com/aturon","followers_url":"https://api.github.com/users/aturon/followers","following_url":"https://api.github.com/users/aturon/following{/other_user}","gists_url":"https://api.github.com/users/aturon/gists{/gist_id}","starred_url":"https://api.github.com/users/aturon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aturon/subscriptions","organizations_url":"https://api.github.com/users/aturon/orgs","repos_url":"https://api.github.com/users/aturon/repos","events_url":"https://api.github.com/users/aturon/events{/privacy}","received_events_url":"https://api.github.com/users/aturon/received_events","type":"User","site_admin":false}],"milestone":null,"comments":279,"created_at":"2015-10-02T03:43:46Z","updated_at":"2016-11-05T22:13:56Z","closed_at":"2016-02-26T23:22:04Z","pull_request":{"url":"https://api.github.com/repos/rust-lang/rfcs/pulls/1303","html_url":"https://github.com/rust-lang/rfcs/pull/1303","diff_url":"https://github.com/rust-lang/rfcs/pull/1303.diff","patch_url":"https://github.com/rust-lang/rfcs/pull/1303.patch"},"body":"[Rendered](https://github.com/mbrubeck/rfcs/blob/if-not-let/text/0000-let-else.md)\n\n**Note:** The initial version of this RFC used the syntax `if !let PAT = EXPR { BODY }`.  In the current version this has been changed to `let PAT = EXPR else { BODY }` for reasons discussed below.\n"},"comment":{"url":"https://api.github.com/repos/rust-lang/rfcs/issues/comments/258645893","html_url":"https://github.com/rust-lang/rfcs/pull/1303#issuecomment-258645893","issue_url":"https://api.github.com/repos/rust-lang/rfcs/issues/1303","id":258645893,"user":{"login":"golddranks","id":2675542,"avatar_url":"https://avatars.githubusercontent.com/u/2675542?v=3","gravatar_id":"","url":"https://api.github.com/users/golddranks","html_url":"https://github.com/golddranks","followers_url":"https://api.github.com/users/golddranks/followers","following_url":"https://api.github.com/users/golddranks/following{/other_user}","gists_url":"https://api.github.com/users/golddranks/gists{/gist_id}","starred_url":"https://api.github.com/users/golddranks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/golddranks/subscriptions","organizations_url":"https://api.github.com/users/golddranks/orgs","repos_url":"https://api.github.com/users/golddranks/repos","events_url":"https://api.github.com/users/golddranks/events{/privacy}","received_events_url":"https://api.github.com/users/golddranks/received_events","type":"User","site_admin":false},"created_at":"2016-11-05T22:13:56Z","updated_at":"2016-11-05T22:13:56Z","body":"I find myself constantly wanting to use this pattern. (I'm using \"?\" too where it's applicable, if that's an important data point to have.) This would make wonders to battle the rightward drift that comes from `if let Some(value) = opt_value { .. }`."}}
{"actor":{"display_login":"golddranks"}}