{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/134","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/134/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/134/events","html_url":"https://github.com/dotnet/roslyn/issues/134","id":55832558,"number":134,"title":"foreach/else","user":{"login":"lyubomyr-shaydariv","id":1956806,"avatar_url":"https://avatars.githubusercontent.com/u/1956806?v=3","gravatar_id":"","url":"https://api.github.com/users/lyubomyr-shaydariv","html_url":"https://github.com/lyubomyr-shaydariv","followers_url":"https://api.github.com/users/lyubomyr-shaydariv/followers","following_url":"https://api.github.com/users/lyubomyr-shaydariv/following{/other_user}","gists_url":"https://api.github.com/users/lyubomyr-shaydariv/gists{/gist_id}","starred_url":"https://api.github.com/users/lyubomyr-shaydariv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyubomyr-shaydariv/subscriptions","organizations_url":"https://api.github.com/users/lyubomyr-shaydariv/orgs","repos_url":"https://api.github.com/users/lyubomyr-shaydariv/repos","events_url":"https://api.github.com/users/lyubomyr-shaydariv/events{/privacy}","received_events_url":"https://api.github.com/users/lyubomyr-shaydariv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-01-28T23:28:19Z","updated_at":"2015-01-29T01:47:21Z","closed_at":null,"body":"The following proposal's value may be really low, nothing revolutionary, but sometimes one may need the code like the following:\r\n\r\n    // bar is an IEnumerable<T>\r\n    foreach ( var foo : bar ) {\r\n        Console.WriteLine(foo);\r\n    } else {\r\n        Console.WriteLine(\"no foos in the bar\");\r\n    }\r\n\r\nJust a little syntax sugar."},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/71954509","html_url":"https://github.com/dotnet/roslyn/issues/134#issuecomment-71954509","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/134","id":71954509,"user":{"login":"AdamSpeight2008","id":900107,"avatar_url":"https://avatars.githubusercontent.com/u/900107?v=3","gravatar_id":"","url":"https://api.github.com/users/AdamSpeight2008","html_url":"https://github.com/AdamSpeight2008","followers_url":"https://api.github.com/users/AdamSpeight2008/followers","following_url":"https://api.github.com/users/AdamSpeight2008/following{/other_user}","gists_url":"https://api.github.com/users/AdamSpeight2008/gists{/gist_id}","starred_url":"https://api.github.com/users/AdamSpeight2008/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdamSpeight2008/subscriptions","organizations_url":"https://api.github.com/users/AdamSpeight2008/orgs","repos_url":"https://api.github.com/users/AdamSpeight2008/repos","events_url":"https://api.github.com/users/AdamSpeight2008/events{/privacy}","received_events_url":"https://api.github.com/users/AdamSpeight2008/received_events","type":"User","site_admin":false},"created_at":"2015-01-29T01:47:21Z","updated_at":"2015-01-29T01:47:21Z","body":"Instead of 'else' what about 'otherwise'?\r\n\r\n    foreach( var x in xs )\r\n    {\r\n    }\r\n    otherwise\r\n    {\r\n    }"}}