{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/4294","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/4294/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/4294/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/4294/events","html_url":"https://github.com/dotnet/roslyn/issues/4294","id":98641418,"number":4294,"title":"Allow comma separated var declarations","user":{"login":"drewnoakes","id":350947,"avatar_url":"https://avatars.githubusercontent.com/u/350947?v=3","gravatar_id":"","url":"https://api.github.com/users/drewnoakes","html_url":"https://github.com/drewnoakes","followers_url":"https://api.github.com/users/drewnoakes/followers","following_url":"https://api.github.com/users/drewnoakes/following{/other_user}","gists_url":"https://api.github.com/users/drewnoakes/gists{/gist_id}","starred_url":"https://api.github.com/users/drewnoakes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewnoakes/subscriptions","organizations_url":"https://api.github.com/users/drewnoakes/orgs","repos_url":"https://api.github.com/users/drewnoakes/repos","events_url":"https://api.github.com/users/drewnoakes/events{/privacy}","received_events_url":"https://api.github.com/users/drewnoakes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Area-Language%20Design","name":"Area-Language Design","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-02T22:21:40Z","updated_at":"2015-08-03T16:59:11Z","closed_at":null,"body":"JavaScript/TypeScript allow separating `var` declarations with a comma, where each declaration's type may differ. It makes for easily readable phrases. For example:\r\n\r\n```javascript\r\nvar radius = 3,\r\n    point = GetPoint(),\r\n    x = radius*2*point.X + radius,\r\n    y = radius*2*point.Y + radius;\r\n```\r\n\r\nRight now comma separated declarations only seem to work when the type is specified explicitly, in which case it is restricted to being identical amongst all declared variables.\r\n\r\nThis is just a syntax thing. In my opinion, the above code is easier to read. The compiler exhibits no preference.\r\n\r\nThis request applies equally to the proposed `readonly` locals (#155), whatever keyword is decided upon (`val`/`let`/`readonly var`/etc)."},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/127331309","html_url":"https://github.com/dotnet/roslyn/issues/4294#issuecomment-127331309","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/4294","id":127331309,"user":{"login":"dsaf","id":3845650,"avatar_url":"https://avatars.githubusercontent.com/u/3845650?v=3","gravatar_id":"","url":"https://api.github.com/users/dsaf","html_url":"https://github.com/dsaf","followers_url":"https://api.github.com/users/dsaf/followers","following_url":"https://api.github.com/users/dsaf/following{/other_user}","gists_url":"https://api.github.com/users/dsaf/gists{/gist_id}","starred_url":"https://api.github.com/users/dsaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsaf/subscriptions","organizations_url":"https://api.github.com/users/dsaf/orgs","repos_url":"https://api.github.com/users/dsaf/repos","events_url":"https://api.github.com/users/dsaf/events{/privacy}","received_events_url":"https://api.github.com/users/dsaf/received_events","type":"User","site_admin":false},"created_at":"2015-08-03T16:59:11Z","updated_at":"2015-08-03T16:59:11Z","body":"By the way there is a reason why it's not already implemented: http://stackoverflow.com/a/4950600/486561\r\n\r\n"}}