{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/csharplang/issues/1643","repository_url":"https://api.github.com/repos/dotnet/csharplang","labels_url":"https://api.github.com/repos/dotnet/csharplang/issues/1643/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/csharplang/issues/1643/comments","events_url":"https://api.github.com/repos/dotnet/csharplang/issues/1643/events","html_url":"https://github.com/dotnet/csharplang/issues/1643","id":332991418,"node_id":"MDU6SXNzdWUzMzI5OTE0MTg=","number":1643,"title":"scoped methods and variables","user":{"login":"lazyloader","id":40127761,"node_id":"MDQ6VXNlcjQwMTI3NzYx","avatar_url":"https://avatars1.githubusercontent.com/u/40127761?v=4","gravatar_id":"","url":"https://api.github.com/users/lazyloader","html_url":"https://github.com/lazyloader","followers_url":"https://api.github.com/users/lazyloader/followers","following_url":"https://api.github.com/users/lazyloader/following{/other_user}","gists_url":"https://api.github.com/users/lazyloader/gists{/gist_id}","starred_url":"https://api.github.com/users/lazyloader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lazyloader/subscriptions","organizations_url":"https://api.github.com/users/lazyloader/orgs","repos_url":"https://api.github.com/users/lazyloader/repos","events_url":"https://api.github.com/users/lazyloader/events{/privacy}","received_events_url":"https://api.github.com/users/lazyloader/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-06-16T14:39:34Z","updated_at":"2018-06-23T20:16:51Z","closed_at":null,"author_association":"NONE","body":"basically this\r\n\r\n```csharp\r\npublic class Foo\r\n    {\r\n         {\r\n         int x = 43;      // can only be used in this scope\r\n         void Bar() { }  // can only be used in this scope\r\n         }\r\n\r\n        void Baz()\r\n            {\r\n            // can't use x or Bar\r\n            }\r\n    }\r\n```\r\n\r\nthis will make code more simple and easy to understand. by using this scope blocks to hide members from the other parts of the class."},"comment":{"url":"https://api.github.com/repos/dotnet/csharplang/issues/comments/399706320","html_url":"https://github.com/dotnet/csharplang/issues/1643#issuecomment-399706320","issue_url":"https://api.github.com/repos/dotnet/csharplang/issues/1643","id":399706320,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTcwNjMyMA==","user":{"login":"Neme12","id":11444821,"node_id":"MDQ6VXNlcjExNDQ0ODIx","avatar_url":"https://avatars3.githubusercontent.com/u/11444821?v=4","gravatar_id":"","url":"https://api.github.com/users/Neme12","html_url":"https://github.com/Neme12","followers_url":"https://api.github.com/users/Neme12/followers","following_url":"https://api.github.com/users/Neme12/following{/other_user}","gists_url":"https://api.github.com/users/Neme12/gists{/gist_id}","starred_url":"https://api.github.com/users/Neme12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Neme12/subscriptions","organizations_url":"https://api.github.com/users/Neme12/orgs","repos_url":"https://api.github.com/users/Neme12/repos","events_url":"https://api.github.com/users/Neme12/events{/privacy}","received_events_url":"https://api.github.com/users/Neme12/received_events","type":"User","site_admin":false},"created_at":"2018-06-23T20:16:51Z","updated_at":"2018-06-23T20:16:51Z","author_association":"NONE","body":"> In the comment I made, Bar and x can be used anywhere in the scope of the braces, but not anywhere outside of them.\r\n\r\nYes. But how will you use anything in that \"scope\" from the outside world? :smile:"}}
{"actor":{"display_login":"Neme12"}}