{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/5050","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/5050/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/5050/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/5050/events","html_url":"https://github.com/dotnet/roslyn/pull/5050","id":105119500,"number":5050,"title":"Allow 'const' implicitly typed local variables.","user":{"login":"CyrusNajmabadi","id":4564579,"avatar_url":"https://avatars.githubusercontent.com/u/4564579?v=3","gravatar_id":"","url":"https://api.github.com/users/CyrusNajmabadi","html_url":"https://github.com/CyrusNajmabadi","followers_url":"https://api.github.com/users/CyrusNajmabadi/followers","following_url":"https://api.github.com/users/CyrusNajmabadi/following{/other_user}","gists_url":"https://api.github.com/users/CyrusNajmabadi/gists{/gist_id}","starred_url":"https://api.github.com/users/CyrusNajmabadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CyrusNajmabadi/subscriptions","organizations_url":"https://api.github.com/users/CyrusNajmabadi/orgs","repos_url":"https://api.github.com/users/CyrusNajmabadi/repos","events_url":"https://api.github.com/users/CyrusNajmabadi/events{/privacy}","received_events_url":"https://api.github.com/users/CyrusNajmabadi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/roslyn/labels/4%20-%20In%20Review","name":"4 - In Review","color":"CCCCCC"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Area-Language%20Design","name":"Area-Language Design","color":"5319e7"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/cla-already-signed","name":"cla-already-signed","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-09-06T22:04:36Z","updated_at":"2015-09-09T16:39:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dotnet/roslyn/pulls/5050","html_url":"https://github.com/dotnet/roslyn/pull/5050","diff_url":"https://github.com/dotnet/roslyn/pull/5050.diff","patch_url":"https://github.com/dotnet/roslyn/pull/5050.patch"},"body":"Implements one take on #4423 (inferred type for `const` declarations)"},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/138967366","html_url":"https://github.com/dotnet/roslyn/pull/5050#issuecomment-138967366","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/5050","id":138967366,"user":{"login":"CyrusNajmabadi","id":4564579,"avatar_url":"https://avatars.githubusercontent.com/u/4564579?v=3","gravatar_id":"","url":"https://api.github.com/users/CyrusNajmabadi","html_url":"https://github.com/CyrusNajmabadi","followers_url":"https://api.github.com/users/CyrusNajmabadi/followers","following_url":"https://api.github.com/users/CyrusNajmabadi/following{/other_user}","gists_url":"https://api.github.com/users/CyrusNajmabadi/gists{/gist_id}","starred_url":"https://api.github.com/users/CyrusNajmabadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CyrusNajmabadi/subscriptions","organizations_url":"https://api.github.com/users/CyrusNajmabadi/orgs","repos_url":"https://api.github.com/users/CyrusNajmabadi/repos","events_url":"https://api.github.com/users/CyrusNajmabadi/events{/privacy}","received_events_url":"https://api.github.com/users/CyrusNajmabadi/received_events","type":"User","site_admin":false},"created_at":"2015-09-09T16:39:50Z","updated_at":"2015-09-09T16:39:50Z","body":"> I was saying that for a group of readers like me, it is self-contradictory as in \"I don't understand which of the two possibilities are specified\".\r\n\r\nBut you're asking me to design the language such that it is not consistent with itself, but so that it is consistent with other languages which have different meanings for these terms.  I'd rather the language stay consistent with itself here.  \"var\" is not a synonym for \"entity\" in C#.  It's a mechanism to avoid having to state the type from a variable declaration and instead have the compiler infer it from the initializer.  \r\n\r\n> If  var  had a different name (e.g.  auto  from C++), that would not be a problem, but it's too late now.\r\n\r\nC++ ```auto``` also came after C#'s ```var``` :)   \r\n\r\nI can't imagine a single language feature that is consistent among all languages.  Even the humble ```=``` has a myriad of different meanings depending on which language you go to.  \r\n\r\nNow, if we were adopting some feature that existed elsewhere, wasn't in the language at all, and had a fairly consistent form elsewhere, I can imagine us taking that into account when bringing it to C#.  However, that's not the case here.  Here's where we're just taking what's already in the language today and just relaxing things to allow it in more situations. :)"}}