{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/flow/issues/183","labels_url":"https://api.github.com/repos/facebook/flow/issues/183/labels{/name}","comments_url":"https://api.github.com/repos/facebook/flow/issues/183/comments","events_url":"https://api.github.com/repos/facebook/flow/issues/183/events","html_url":"https://github.com/facebook/flow/issues/183","id":51502612,"number":183,"title":"Add support for destructuring parameters + default values","user":{"login":"TylerEich","id":3460063,"avatar_url":"https://avatars.githubusercontent.com/u/3460063?v=3","gravatar_id":"","url":"https://api.github.com/users/TylerEich","html_url":"https://github.com/TylerEich","followers_url":"https://api.github.com/users/TylerEich/followers","following_url":"https://api.github.com/users/TylerEich/following{/other_user}","gists_url":"https://api.github.com/users/TylerEich/gists{/gist_id}","starred_url":"https://api.github.com/users/TylerEich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TylerEich/subscriptions","organizations_url":"https://api.github.com/users/TylerEich/orgs","repos_url":"https://api.github.com/users/TylerEich/repos","events_url":"https://api.github.com/users/TylerEich/events{/privacy}","received_events_url":"https://api.github.com/users/TylerEich/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/flow/labels/ES2015","name":"ES2015","color":"bfd4f2"},{"url":"https://api.github.com/repos/facebook/flow/labels/incompleteness","name":"incompleteness","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-12-10T00:31:27Z","updated_at":"2015-10-13T02:29:52Z","closed_at":null,"body":"I'm using ES6's new destructuring parameters with default values per the [reminder from Brendan Eich](https://mail.mozilla.org/pipermail/es-discuss/2011-November/018670.html) (via [2ality.com](http://www.2ality.com/2011/11/keyword-parameters.html)).\r\n\r\nSo I would like to do this:\r\n```es6\r\nfunction rgba({ r, g, b, a = 1 }) {\r\n\treturn [ r, g, b, a ];\r\n}\r\n```\r\n\r\nFlow is throwing an `Unexpected token =` error at `a = 1`. Interestingly, [JSHint has an issue](https://github.com/jshint/jshint/issues/1941) with this pattern too."},"comment":{"url":"https://api.github.com/repos/facebook/flow/issues/comments/147577060","html_url":"https://github.com/facebook/flow/issues/183#issuecomment-147577060","issue_url":"https://api.github.com/repos/facebook/flow/issues/183","id":147577060,"user":{"login":"samwgoldman","id":254842,"avatar_url":"https://avatars.githubusercontent.com/u/254842?v=3","gravatar_id":"","url":"https://api.github.com/users/samwgoldman","html_url":"https://github.com/samwgoldman","followers_url":"https://api.github.com/users/samwgoldman/followers","following_url":"https://api.github.com/users/samwgoldman/following{/other_user}","gists_url":"https://api.github.com/users/samwgoldman/gists{/gist_id}","starred_url":"https://api.github.com/users/samwgoldman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samwgoldman/subscriptions","organizations_url":"https://api.github.com/users/samwgoldman/orgs","repos_url":"https://api.github.com/users/samwgoldman/repos","events_url":"https://api.github.com/users/samwgoldman/events{/privacy}","received_events_url":"https://api.github.com/users/samwgoldman/received_events","type":"User","site_admin":false},"created_at":"2015-10-13T02:29:52Z","updated_at":"2015-10-13T02:29:52Z","body":"@Eyyub You have some work on this. I looked over your branch and I think it makes sense to try to land the parsing support first, then the type checking support separately. If you don't have bandwidth to do this, would you mind if I tried to put a bow on what you have so far?"}}