{"action":"opened","issue":{"url":"https://api.github.com/repos/nim-lang/Nim/issues/10085","repository_url":"https://api.github.com/repos/nim-lang/Nim","labels_url":"https://api.github.com/repos/nim-lang/Nim/issues/10085/labels{/name}","comments_url":"https://api.github.com/repos/nim-lang/Nim/issues/10085/comments","events_url":"https://api.github.com/repos/nim-lang/Nim/issues/10085/events","html_url":"https://github.com/nim-lang/Nim/issues/10085","id":393775835,"node_id":"MDU6SXNzdWUzOTM3NzU4MzU=","number":10085,"title":"can `static T` be removed from the language?","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":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-23T19:41:16Z","updated_at":"2018-12-23T19:41:16Z","closed_at":null,"author_association":"COLLABORATOR","body":"I'm skeptical but opening this as a centralized place to discuss this since @araq mentioned the following:\r\n\r\nhttps://github.com/nim-lang/Nim/pull/10080#issuecomment-449656127\r\n> static T needs to be removed from the language IMHO. Just allow to pass integer values as type parameters turning the value N into range[0..N-1] would allow almost the same patterns without this never ending clusterfuck of bugs, edge cases and downright unspecified behaviour.\r\n\r\n* how would this work without `static T` ?\r\n```nim\r\nmacro foo(a: int, b: static int): untyped # a becomes NimNode, not b\r\n```\r\n"}}
{"actor":{"display_login":"timotheecour"}}