{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/flow/issues/1212","labels_url":"https://api.github.com/repos/facebook/flow/issues/1212/labels{/name}","comments_url":"https://api.github.com/repos/facebook/flow/issues/1212/comments","events_url":"https://api.github.com/repos/facebook/flow/issues/1212/events","html_url":"https://github.com/facebook/flow/pull/1212","id":123735871,"number":1212,"title":"changing vars to ES6 const (and let)","user":{"login":"runn1ng","id":104945,"avatar_url":"https://avatars.githubusercontent.com/u/104945?v=3","gravatar_id":"","url":"https://api.github.com/users/runn1ng","html_url":"https://github.com/runn1ng","followers_url":"https://api.github.com/users/runn1ng/followers","following_url":"https://api.github.com/users/runn1ng/following{/other_user}","gists_url":"https://api.github.com/users/runn1ng/gists{/gist_id}","starred_url":"https://api.github.com/users/runn1ng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runn1ng/subscriptions","organizations_url":"https://api.github.com/users/runn1ng/orgs","repos_url":"https://api.github.com/users/runn1ng/repos","events_url":"https://api.github.com/users/runn1ng/events{/privacy}","received_events_url":"https://api.github.com/users/runn1ng/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-23T23:21:03Z","updated_at":"2015-12-23T23:23:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/facebook/flow/pulls/1212","html_url":"https://github.com/facebook/flow/pull/1212","diff_url":"https://github.com/facebook/flow/pull/1212.diff","patch_url":"https://github.com/facebook/flow/pull/1212.patch"},"body":"I don't *actually* expect this pull request to be merged as-is... however, I made it as an idea/discussion starter/...?\r\n\r\nFlow now can do ES6 const/let, and it would be nice to \"teach\" users to use them in real code, since they are really useful.\r\n\r\nSo I just changed all `vars` to `const`, where possible, and where not possible, to `let`s."},"comment":{"url":"https://api.github.com/repos/facebook/flow/issues/comments/167008006","html_url":"https://github.com/facebook/flow/pull/1212#issuecomment-167008006","issue_url":"https://api.github.com/repos/facebook/flow/issues/1212","id":167008006,"user":{"login":"runn1ng","id":104945,"avatar_url":"https://avatars.githubusercontent.com/u/104945?v=3","gravatar_id":"","url":"https://api.github.com/users/runn1ng","html_url":"https://github.com/runn1ng","followers_url":"https://api.github.com/users/runn1ng/followers","following_url":"https://api.github.com/users/runn1ng/following{/other_user}","gists_url":"https://api.github.com/users/runn1ng/gists{/gist_id}","starred_url":"https://api.github.com/users/runn1ng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/runn1ng/subscriptions","organizations_url":"https://api.github.com/users/runn1ng/orgs","repos_url":"https://api.github.com/users/runn1ng/repos","events_url":"https://api.github.com/users/runn1ng/events{/privacy}","received_events_url":"https://api.github.com/users/runn1ng/received_events","type":"User","site_admin":false},"created_at":"2015-12-23T23:23:07Z","updated_at":"2015-12-23T23:23:07Z","body":"I did *not* test if all those examples are actually working with const, since again, I assumed this will not be accepted anyway. But I can test it of course."}}