{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/pxt/issues/968","repository_url":"https://api.github.com/repos/Microsoft/pxt","labels_url":"https://api.github.com/repos/Microsoft/pxt/issues/968/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/pxt/issues/968/comments","events_url":"https://api.github.com/repos/Microsoft/pxt/issues/968/events","html_url":"https://github.com/Microsoft/pxt/issues/968","id":196786083,"number":968,"title":"Implementation of a switch block","user":{"login":"OwenBrotherwood","id":866122,"avatar_url":"https://avatars.githubusercontent.com/u/866122?v=3","gravatar_id":"","url":"https://api.github.com/users/OwenBrotherwood","html_url":"https://github.com/OwenBrotherwood","followers_url":"https://api.github.com/users/OwenBrotherwood/followers","following_url":"https://api.github.com/users/OwenBrotherwood/following{/other_user}","gists_url":"https://api.github.com/users/OwenBrotherwood/gists{/gist_id}","starred_url":"https://api.github.com/users/OwenBrotherwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OwenBrotherwood/subscriptions","organizations_url":"https://api.github.com/users/OwenBrotherwood/orgs","repos_url":"https://api.github.com/users/OwenBrotherwood/repos","events_url":"https://api.github.com/users/OwenBrotherwood/events{/privacy}","received_events_url":"https://api.github.com/users/OwenBrotherwood/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-20T21:30:30Z","updated_at":"2016-12-20T21:52:42Z","closed_at":null,"body":"Implementation of a switch block to allow for state.\r\n\r\nhttps://github.com/Microsoft/pxt/issues/849#issuecomment-265831839"},"comment":{"url":"https://api.github.com/repos/Microsoft/pxt/issues/comments/268370078","html_url":"https://github.com/Microsoft/pxt/issues/968#issuecomment-268370078","issue_url":"https://api.github.com/repos/Microsoft/pxt/issues/968","id":268370078,"user":{"login":"OwenBrotherwood","id":866122,"avatar_url":"https://avatars.githubusercontent.com/u/866122?v=3","gravatar_id":"","url":"https://api.github.com/users/OwenBrotherwood","html_url":"https://github.com/OwenBrotherwood","followers_url":"https://api.github.com/users/OwenBrotherwood/followers","following_url":"https://api.github.com/users/OwenBrotherwood/following{/other_user}","gists_url":"https://api.github.com/users/OwenBrotherwood/gists{/gist_id}","starred_url":"https://api.github.com/users/OwenBrotherwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OwenBrotherwood/subscriptions","organizations_url":"https://api.github.com/users/OwenBrotherwood/orgs","repos_url":"https://api.github.com/users/OwenBrotherwood/repos","events_url":"https://api.github.com/users/OwenBrotherwood/events{/privacy}","received_events_url":"https://api.github.com/users/OwenBrotherwood/received_events","type":"User","site_admin":false},"created_at":"2016-12-20T21:52:42Z","updated_at":"2016-12-20T21:52:42Z","body":"The current implementation for if then else does not cater for a large if then else if then else stack.\r\nIt would be appropriate to examine the implementation of the switch statement in terms of understandability/readability\r\n\r\nThe use of if then else chains or switch aid in ensuring a state machine for to support the https://github.com/Microsoft/pxt/issues/849#issuecomment-265831839\r\n\r\n/cc @EdNutting\r\n\r\nhttps://en.wikipedia.org/wiki/Switch_statement"}}
{"actor":{"display_login":"OwenBrotherwood"}}