{"action":"opened","issue":{"url":"https://api.github.com/repos/brownplt/pyret-lang/issues/775","repository_url":"https://api.github.com/repos/brownplt/pyret-lang","labels_url":"https://api.github.com/repos/brownplt/pyret-lang/issues/775/labels{/name}","comments_url":"https://api.github.com/repos/brownplt/pyret-lang/issues/775/comments","events_url":"https://api.github.com/repos/brownplt/pyret-lang/issues/775/events","html_url":"https://github.com/brownplt/pyret-lang/issues/775","id":167253945,"number":775,"title":"destructuring assignment doesn't work in argument lists","user":{"login":"shriram","id":75030,"avatar_url":"https://avatars.githubusercontent.com/u/75030?v=3","gravatar_id":"","url":"https://api.github.com/users/shriram","html_url":"https://github.com/shriram","followers_url":"https://api.github.com/users/shriram/followers","following_url":"https://api.github.com/users/shriram/following{/other_user}","gists_url":"https://api.github.com/users/shriram/gists{/gist_id}","starred_url":"https://api.github.com/users/shriram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shriram/subscriptions","organizations_url":"https://api.github.com/users/shriram/orgs","repos_url":"https://api.github.com/users/shriram/repos","events_url":"https://api.github.com/users/shriram/events{/privacy}","received_events_url":"https://api.github.com/users/shriram/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-24T20:59:15Z","updated_at":"2016-07-24T20:59:15Z","closed_at":null,"body":"I can write\r\n```\r\nfun f(w): \r\n  {x; y} = w\r\n  x\r\nend\r\n```\r\nbut not\r\n```\r\nfun g({x; y}):\r\n  x\r\nend\r\n```\r\nThis seems unfortunate, and it's especially a drag in `lam` expressions, where the one-line-ness of an expression is totally destroyed by not being able to destructure [though I admit it looks rather ugly if you do it in `{...}` lambda syntax as opposed to `lam` syntax].\r\n\r\nAs a general principle, I would have thought destructuring binding works in _all_ binding positions."}}
{"actor":{"display_login":"shriram"}}