{"action":"created","issue":{"url":"https://api.github.com/repos/leafo/moonscript/issues/240","labels_url":"https://api.github.com/repos/leafo/moonscript/issues/240/labels{/name}","comments_url":"https://api.github.com/repos/leafo/moonscript/issues/240/comments","events_url":"https://api.github.com/repos/leafo/moonscript/issues/240/events","html_url":"https://github.com/leafo/moonscript/issues/240","id":127777161,"number":240,"title":"condition assignment in switch statement","user":{"login":"Nymphium","id":5901180,"avatar_url":"https://avatars.githubusercontent.com/u/5901180?v=3","gravatar_id":"","url":"https://api.github.com/users/Nymphium","html_url":"https://github.com/Nymphium","followers_url":"https://api.github.com/users/Nymphium/followers","following_url":"https://api.github.com/users/Nymphium/following{/other_user}","gists_url":"https://api.github.com/users/Nymphium/gists{/gist_id}","starred_url":"https://api.github.com/users/Nymphium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nymphium/subscriptions","organizations_url":"https://api.github.com/users/Nymphium/orgs","repos_url":"https://api.github.com/users/Nymphium/repos","events_url":"https://api.github.com/users/Nymphium/events{/privacy}","received_events_url":"https://api.github.com/users/Nymphium/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-20T20:30:10Z","updated_at":"2016-01-26T07:38:05Z","closed_at":null,"body":"I sometimes write such as:\r\n\r\n```MoonScript\r\ncond = foo bar\r\n\r\nswitch cond\r\n  when m1 then biz cond\r\n  ......\r\n```\r\n\r\nIt's not cool, and how about this like `with` statement?\r\n\r\n```MoonScript\r\nswitch cond = foo bar\r\n  when m1 then biz cond\r\n  ......\r\n```"},"comment":{"url":"https://api.github.com/repos/leafo/moonscript/issues/comments/174874857","html_url":"https://github.com/leafo/moonscript/issues/240#issuecomment-174874857","issue_url":"https://api.github.com/repos/leafo/moonscript/issues/240","id":174874857,"user":{"login":"Nymphium","id":5901180,"avatar_url":"https://avatars.githubusercontent.com/u/5901180?v=3","gravatar_id":"","url":"https://api.github.com/users/Nymphium","html_url":"https://github.com/Nymphium","followers_url":"https://api.github.com/users/Nymphium/followers","following_url":"https://api.github.com/users/Nymphium/following{/other_user}","gists_url":"https://api.github.com/users/Nymphium/gists{/gist_id}","starred_url":"https://api.github.com/users/Nymphium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nymphium/subscriptions","organizations_url":"https://api.github.com/users/Nymphium/orgs","repos_url":"https://api.github.com/users/Nymphium/repos","events_url":"https://api.github.com/users/Nymphium/events{/privacy}","received_events_url":"https://api.github.com/users/Nymphium/received_events","type":"User","site_admin":false},"created_at":"2016-01-26T07:38:05Z","updated_at":"2016-01-26T07:38:05Z","body":"Oh, you're right.\r\nMore generally,  `(var = val)` , assign with bracket makes an assign statement an assign expression, how about, or you said?"}}