{"action":"created","issue":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/8610","repository_url":"https://api.github.com/repos/nim-lang/Nim","labels_url":"https://api.github.com/repos/nim-lang/Nim/issues/8610/labels{/name}","comments_url":"https://api.github.com/repos/nim-lang/Nim/issues/8610/comments","events_url":"https://api.github.com/repos/nim-lang/Nim/issues/8610/events","html_url":"https://github.com/nim-lang/Nim/issues/8610","id":349701020,"node_id":"MDU6SXNzdWUzNDk3MDEwMjA=","number":8610,"title":"`const Foo=int` compiles; is that legal? what does it mean?","user":{"login":"timotheecour","id":2194784,"node_id":"MDQ6VXNlcjIxOTQ3ODQ=","avatar_url":"https://avatars2.githubusercontent.com/u/2194784?v=4","gravatar_id":"","url":"https://api.github.com/users/timotheecour","html_url":"https://github.com/timotheecour","followers_url":"https://api.github.com/users/timotheecour/followers","following_url":"https://api.github.com/users/timotheecour/following{/other_user}","gists_url":"https://api.github.com/users/timotheecour/gists{/gist_id}","starred_url":"https://api.github.com/users/timotheecour/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timotheecour/subscriptions","organizations_url":"https://api.github.com/users/timotheecour/orgs","repos_url":"https://api.github.com/users/timotheecour/repos","events_url":"https://api.github.com/users/timotheecour/events{/privacy}","received_events_url":"https://api.github.com/users/timotheecour/received_events","type":"User","site_admin":false},"labels":[{"id":66121,"node_id":"MDU6TGFiZWw2NjEyMQ==","url":"https://api.github.com/repos/nim-lang/Nim/labels/High%20Priority","name":"High Priority","color":"e30c0c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-08-11T03:11:08Z","updated_at":"2018-08-16T11:38:05Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"EDIT: is that the syntax to get a const typedesc variable ? where is that documented?\r\n```nim\r\nconst Foo=int\r\necho Foo is int # true\r\necho int is Foo # Error: type expected\r\n```"},"comment":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/comments/413516286","html_url":"https://github.com/nim-lang/Nim/issues/8610#issuecomment-413516286","issue_url":"https://api.github.com/repos/nim-lang/Nim/issues/8610","id":413516286,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzUxNjI4Ng==","user":{"login":"tim-st","id":17989826,"node_id":"MDQ6VXNlcjE3OTg5ODI2","avatar_url":"https://avatars1.githubusercontent.com/u/17989826?v=4","gravatar_id":"","url":"https://api.github.com/users/tim-st","html_url":"https://github.com/tim-st","followers_url":"https://api.github.com/users/tim-st/followers","following_url":"https://api.github.com/users/tim-st/following{/other_user}","gists_url":"https://api.github.com/users/tim-st/gists{/gist_id}","starred_url":"https://api.github.com/users/tim-st/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tim-st/subscriptions","organizations_url":"https://api.github.com/users/tim-st/orgs","repos_url":"https://api.github.com/users/tim-st/repos","events_url":"https://api.github.com/users/tim-st/events{/privacy}","received_events_url":"https://api.github.com/users/tim-st/received_events","type":"User","site_admin":false},"created_at":"2018-08-16T11:38:05Z","updated_at":"2018-08-16T11:38:05Z","author_association":"CONTRIBUTOR","body":"But `const Foo = int` should be illegal and `var Foo = int` is already illegal and also a proc param (afaik) is always `var` or `const`. So I don't really understand why it should be allowed in the context of proc arguments when it's disallowed everywhere else, do you have an example where it makes sense to allow it in a proc but disallow it everywhere else?\r\n"}}
{"actor":{"display_login":"tim-st"}}