{"action":"created","issue":{"url":"https://api.github.com/repos/godotengine/godot/issues/6292","repository_url":"https://api.github.com/repos/godotengine/godot","labels_url":"https://api.github.com/repos/godotengine/godot/issues/6292/labels{/name}","comments_url":"https://api.github.com/repos/godotengine/godot/issues/6292/comments","events_url":"https://api.github.com/repos/godotengine/godot/issues/6292/events","html_url":"https://github.com/godotengine/godot/pull/6292","id":173430765,"number":6292,"title":"Adds enums to GDScript","user":{"login":"bojidar-bg","id":5276727,"avatar_url":"https://avatars.githubusercontent.com/u/5276727?v=3","gravatar_id":"","url":"https://api.github.com/users/bojidar-bg","html_url":"https://github.com/bojidar-bg","followers_url":"https://api.github.com/users/bojidar-bg/followers","following_url":"https://api.github.com/users/bojidar-bg/following{/other_user}","gists_url":"https://api.github.com/users/bojidar-bg/gists{/gist_id}","starred_url":"https://api.github.com/users/bojidar-bg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bojidar-bg/subscriptions","organizations_url":"https://api.github.com/users/bojidar-bg/orgs","repos_url":"https://api.github.com/users/bojidar-bg/repos","events_url":"https://api.github.com/users/bojidar-bg/events{/privacy}","received_events_url":"https://api.github.com/users/bojidar-bg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/godotengine/godot/labels/feature%20proposal","name":"feature proposal","color":"1144ff"},{"url":"https://api.github.com/repos/godotengine/godot/labels/topic:gdscript","name":"topic:gdscript","color":"ffdd44"}],"state":"open","locked":false,"assignee":{"login":"reduz","id":6265307,"avatar_url":"https://avatars.githubusercontent.com/u/6265307?v=3","gravatar_id":"","url":"https://api.github.com/users/reduz","html_url":"https://github.com/reduz","followers_url":"https://api.github.com/users/reduz/followers","following_url":"https://api.github.com/users/reduz/following{/other_user}","gists_url":"https://api.github.com/users/reduz/gists{/gist_id}","starred_url":"https://api.github.com/users/reduz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reduz/subscriptions","organizations_url":"https://api.github.com/users/reduz/orgs","repos_url":"https://api.github.com/users/reduz/repos","events_url":"https://api.github.com/users/reduz/events{/privacy}","received_events_url":"https://api.github.com/users/reduz/received_events","type":"User","site_admin":false},"assignees":[{"login":"reduz","id":6265307,"avatar_url":"https://avatars.githubusercontent.com/u/6265307?v=3","gravatar_id":"","url":"https://api.github.com/users/reduz","html_url":"https://github.com/reduz","followers_url":"https://api.github.com/users/reduz/followers","following_url":"https://api.github.com/users/reduz/following{/other_user}","gists_url":"https://api.github.com/users/reduz/gists{/gist_id}","starred_url":"https://api.github.com/users/reduz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reduz/subscriptions","organizations_url":"https://api.github.com/users/reduz/orgs","repos_url":"https://api.github.com/users/reduz/repos","events_url":"https://api.github.com/users/reduz/events{/privacy}","received_events_url":"https://api.github.com/users/reduz/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/godotengine/godot/milestones/6","html_url":"https://github.com/godotengine/godot/milestones/2.2","labels_url":"https://api.github.com/repos/godotengine/godot/milestones/6/labels","id":1807486,"number":6,"title":"2.2","description":"","creator":{"login":"akien-mga","id":4701338,"avatar_url":"https://avatars.githubusercontent.com/u/4701338?v=3","gravatar_id":"","url":"https://api.github.com/users/akien-mga","html_url":"https://github.com/akien-mga","followers_url":"https://api.github.com/users/akien-mga/followers","following_url":"https://api.github.com/users/akien-mga/following{/other_user}","gists_url":"https://api.github.com/users/akien-mga/gists{/gist_id}","starred_url":"https://api.github.com/users/akien-mga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akien-mga/subscriptions","organizations_url":"https://api.github.com/users/akien-mga/orgs","repos_url":"https://api.github.com/users/akien-mga/repos","events_url":"https://api.github.com/users/akien-mga/events{/privacy}","received_events_url":"https://api.github.com/users/akien-mga/received_events","type":"User","site_admin":false},"open_issues":272,"closed_issues":59,"state":"open","created_at":"2016-06-03T16:13:32Z","updated_at":"2016-08-30T14:59:55Z","due_on":null,"closed_at":null},"comments":12,"created_at":"2016-08-26T11:22:24Z","updated_at":"2016-08-30T20:45:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/godotengine/godot/pulls/6292","html_url":"https://github.com/godotengine/godot/pull/6292","diff_url":"https://github.com/godotengine/godot/pull/6292.diff","patch_url":"https://github.com/godotengine/godot/pull/6292.patch"},"body":"Fixes #2966\r\n\r\nQuick sample usage:\r\n```gdscript\r\nenum {TLIE_FLOOR, TLIE_BRICK, TLIE_SPIKE, TLIE_MAX}\r\n# TILE_FLOOR == 1, TILE_MAX == 4\r\nenum {A = TLIE_BRICK,B,C}\r\n# A==2, B==3, C==4\r\nenum {PI_FLOORED = floor(PI), PI_CEILED = ceil(PI), PI_ROUNDED = round(PI)}\r\n# Allows only ints though..\r\nenum {TEST_A, TEST_B, TEST_C, # Also should allow newlines..\r\n  TEST_A1 = TEST_A * 10, TEST_B1 = TEST_B * 10, TEST_C1 = TEST_C * 10}\r\n# Because, why not (unintended consequence of the parsing code, heh)?\r\n```"},"comment":{"url":"https://api.github.com/repos/godotengine/godot/issues/comments/243574899","html_url":"https://github.com/godotengine/godot/pull/6292#issuecomment-243574899","issue_url":"https://api.github.com/repos/godotengine/godot/issues/6292","id":243574899,"user":{"login":"tomuxmon","id":2006864,"avatar_url":"https://avatars.githubusercontent.com/u/2006864?v=3","gravatar_id":"","url":"https://api.github.com/users/tomuxmon","html_url":"https://github.com/tomuxmon","followers_url":"https://api.github.com/users/tomuxmon/followers","following_url":"https://api.github.com/users/tomuxmon/following{/other_user}","gists_url":"https://api.github.com/users/tomuxmon/gists{/gist_id}","starred_url":"https://api.github.com/users/tomuxmon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomuxmon/subscriptions","organizations_url":"https://api.github.com/users/tomuxmon/orgs","repos_url":"https://api.github.com/users/tomuxmon/repos","events_url":"https://api.github.com/users/tomuxmon/events{/privacy}","received_events_url":"https://api.github.com/users/tomuxmon/received_events","type":"User","site_admin":false},"created_at":"2016-08-30T20:45:41Z","updated_at":"2016-08-30T20:45:41Z","body":"Should not syntax resemble python? Those curlies really look strange, (unless they [define a dictionary](http://stackoverflow.com/questions/9197324/curly-braces-in-python)).\r\nHad a peak at [python syntax](https://www.python.org/dev/peps/pep-0435/)  and i it seems more natural and concise. I also like how[ enums and union types ](https://fsharpforfunandprofit.com/posts/enum-types/)are expressed in f# but I guess that does not conform to GDScript at all :)\r\n\r\nAlso I would give anything to have named enums and dot in to specific value like :\r\nKingdom.Fungi\r\n\r\n"}}
{"actor":{"display_login":"tomuxmon"}}