{"action":"created","issue":{"url":"https://api.github.com/repos/ocaml/ocaml/issues/194","labels_url":"https://api.github.com/repos/ocaml/ocaml/issues/194/labels{/name}","comments_url":"https://api.github.com/repos/ocaml/ocaml/issues/194/comments","events_url":"https://api.github.com/repos/ocaml/ocaml/issues/194/events","html_url":"https://github.com/ocaml/ocaml/pull/194","id":86567235,"number":194,"title":"add a `if let` construct to the language","user":{"login":"c-cube","id":1274291,"avatar_url":"https://avatars.githubusercontent.com/u/1274291?v=3","gravatar_id":"","url":"https://api.github.com/users/c-cube","html_url":"https://github.com/c-cube","followers_url":"https://api.github.com/users/c-cube/followers","following_url":"https://api.github.com/users/c-cube/following{/other_user}","gists_url":"https://api.github.com/users/c-cube/gists{/gist_id}","starred_url":"https://api.github.com/users/c-cube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c-cube/subscriptions","organizations_url":"https://api.github.com/users/c-cube/orgs","repos_url":"https://api.github.com/users/c-cube/repos","events_url":"https://api.github.com/users/c-cube/events{/privacy}","received_events_url":"https://api.github.com/users/c-cube/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-06-09T11:39:33Z","updated_at":"2015-06-09T12:24:11Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ocaml/ocaml/pulls/194","html_url":"https://github.com/ocaml/ocaml/pull/194","diff_url":"https://github.com/ocaml/ocaml/pull/194.diff","patch_url":"https://github.com/ocaml/ocaml/pull/194.patch"},"body":"Similar to the existing construct in swift and rust ([RFC for rust](https://github.com/rust-lang/rfcs/pull/160)). If this construct is approved, I might implement `while let` ([RFC for rust](https://github.com/rust-lang/rfcs/pull/214)).\r\n\r\nAn expression `if let Some x = e then a else b` becomes `match e with Some x -> a | _ -> b`."},"comment":{"url":"https://api.github.com/repos/ocaml/ocaml/issues/comments/110338468","html_url":"https://github.com/ocaml/ocaml/pull/194#issuecomment-110338468","issue_url":"https://api.github.com/repos/ocaml/ocaml/issues/194","id":110338468,"user":{"login":"c-cube","id":1274291,"avatar_url":"https://avatars.githubusercontent.com/u/1274291?v=3","gravatar_id":"","url":"https://api.github.com/users/c-cube","html_url":"https://github.com/c-cube","followers_url":"https://api.github.com/users/c-cube/followers","following_url":"https://api.github.com/users/c-cube/following{/other_user}","gists_url":"https://api.github.com/users/c-cube/gists{/gist_id}","starred_url":"https://api.github.com/users/c-cube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/c-cube/subscriptions","organizations_url":"https://api.github.com/users/c-cube/orgs","repos_url":"https://api.github.com/users/c-cube/repos","events_url":"https://api.github.com/users/c-cube/events{/privacy}","received_events_url":"https://api.github.com/users/c-cube/received_events","type":"User","site_admin":false},"created_at":"2015-06-09T12:24:11Z","updated_at":"2015-06-09T12:24:11Z","body":"@lpw25 oh, my bad, didn't see this :("}}