{"action":"created","issue":{"url":"https://api.github.com/repos/JohnEarnest/Octo/issues/35","repository_url":"https://api.github.com/repos/JohnEarnest/Octo","labels_url":"https://api.github.com/repos/JohnEarnest/Octo/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/JohnEarnest/Octo/issues/35/comments","events_url":"https://api.github.com/repos/JohnEarnest/Octo/issues/35/events","html_url":"https://github.com/JohnEarnest/Octo/issues/35","id":172285476,"number":35,"title":"Default constants for key mapping","user":{"login":"buffis","id":10560514,"avatar_url":"https://avatars.githubusercontent.com/u/10560514?v=3","gravatar_id":"","url":"https://api.github.com/users/buffis","html_url":"https://github.com/buffis","followers_url":"https://api.github.com/users/buffis/followers","following_url":"https://api.github.com/users/buffis/following{/other_user}","gists_url":"https://api.github.com/users/buffis/gists{/gist_id}","starred_url":"https://api.github.com/users/buffis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buffis/subscriptions","organizations_url":"https://api.github.com/users/buffis/orgs","repos_url":"https://api.github.com/users/buffis/repos","events_url":"https://api.github.com/users/buffis/events{/privacy}","received_events_url":"https://api.github.com/users/buffis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JohnEarnest/Octo/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-20T19:01:06Z","updated_at":"2016-08-20T19:11:09Z","closed_at":null,"body":"Having to remember what keyboard key maps to which number for instructions is tedious.\r\n\r\nThere should be predefined constants like\r\n\r\n    :const KEY_W 5\r\n    :const KEY_S 8\r\n\r\nAnd so on, so I could just do.\r\n\r\n    v0 := KEY_W\r\n    if v0 key then move_up\r\n\r\nIf something like this already exists, it should be added to the docs."},"comment":{"url":"https://api.github.com/repos/JohnEarnest/Octo/issues/comments/241218137","html_url":"https://github.com/JohnEarnest/Octo/issues/35#issuecomment-241218137","issue_url":"https://api.github.com/repos/JohnEarnest/Octo/issues/35","id":241218137,"user":{"login":"JohnEarnest","id":400682,"avatar_url":"https://avatars.githubusercontent.com/u/400682?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnEarnest","html_url":"https://github.com/JohnEarnest","followers_url":"https://api.github.com/users/JohnEarnest/followers","following_url":"https://api.github.com/users/JohnEarnest/following{/other_user}","gists_url":"https://api.github.com/users/JohnEarnest/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnEarnest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnEarnest/subscriptions","organizations_url":"https://api.github.com/users/JohnEarnest/orgs","repos_url":"https://api.github.com/users/JohnEarnest/repos","events_url":"https://api.github.com/users/JohnEarnest/events{/privacy}","received_events_url":"https://api.github.com/users/JohnEarnest/received_events","type":"User","site_admin":false},"created_at":"2016-08-20T19:11:09Z","updated_at":"2016-08-20T19:11:09Z","body":"I never thought flipping to the emulator or manual to consult the keymap was that much of a pain, but I could see how having some predefined constants could make simple programs shorter. As currently implemented, Octo will complain about duplicate constant definitions, so any existing programs in the wild which defined `KEY_W`, etc, would be broken.\r\n\r\nIf we want to have built-in constants, reserving (and documenting as such) some prefix for builtins could mitigate the issue- for example `OCTO_KEY_W`. It would be possible to special case the error check for the predefined constants. Are there any other constants which would be useful enough to predefine and document?"}}
{"actor":{"display_login":"JohnEarnest"}}