{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/3109","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/3109/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/3109/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/3109/events","html_url":"https://github.com/dotnet/roslyn/issues/3109","id":81286520,"number":3109,"title":"[Proposal] Scoped variable (With keyword)","user":{"login":"KalitaAlexey","id":11215191,"avatar_url":"https://avatars.githubusercontent.com/u/11215191?v=3","gravatar_id":"","url":"https://api.github.com/users/KalitaAlexey","html_url":"https://github.com/KalitaAlexey","followers_url":"https://api.github.com/users/KalitaAlexey/followers","following_url":"https://api.github.com/users/KalitaAlexey/following{/other_user}","gists_url":"https://api.github.com/users/KalitaAlexey/gists{/gist_id}","starred_url":"https://api.github.com/users/KalitaAlexey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KalitaAlexey/subscriptions","organizations_url":"https://api.github.com/users/KalitaAlexey/orgs","repos_url":"https://api.github.com/users/KalitaAlexey/repos","events_url":"https://api.github.com/users/KalitaAlexey/events{/privacy}","received_events_url":"https://api.github.com/users/KalitaAlexey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-27T05:31:11Z","updated_at":"2015-05-27T12:24:10Z","closed_at":null,"body":"Sometimes I need to use some object in two lines, but I don't want to pollute scope.\r\nExample\r\n```\r\nIEnumerable<IModel> models = <...>;\r\nView view = new View();\r\nview.Position = new Point(models.First().Position.X, models.First().Position.Y / 2);\r\n```\r\nI'd like to write\r\n```\r\nIEnumerable<IModel> models = <...>;\r\nView view = new View();\r\nwith (var model = models.First())\r\n{\r\n    view.Position = new Point(model.Position.X, model.Position.Y / 2);\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/105888737","html_url":"https://github.com/dotnet/roslyn/issues/3109#issuecomment-105888737","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/3109","id":105888737,"user":{"login":"HaloFour","id":10102290,"avatar_url":"https://avatars.githubusercontent.com/u/10102290?v=3","gravatar_id":"","url":"https://api.github.com/users/HaloFour","html_url":"https://github.com/HaloFour","followers_url":"https://api.github.com/users/HaloFour/followers","following_url":"https://api.github.com/users/HaloFour/following{/other_user}","gists_url":"https://api.github.com/users/HaloFour/gists{/gist_id}","starred_url":"https://api.github.com/users/HaloFour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HaloFour/subscriptions","organizations_url":"https://api.github.com/users/HaloFour/orgs","repos_url":"https://api.github.com/users/HaloFour/repos","events_url":"https://api.github.com/users/HaloFour/events{/privacy}","received_events_url":"https://api.github.com/users/HaloFour/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T12:24:10Z","updated_at":"2015-05-27T12:24:10Z","body":"This proposal doesn't add anything new to the language.  Yet another method of introducing scope is extraneous, especially since absolutely nothing special is happening or being done with the `model` variable."}}