{"action":"created","issue":{"url":"https://api.github.com/repos/bloomberg/blpapi-http/issues/75","labels_url":"https://api.github.com/repos/bloomberg/blpapi-http/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/bloomberg/blpapi-http/issues/75/comments","events_url":"https://api.github.com/repos/bloomberg/blpapi-http/issues/75/events","html_url":"https://github.com/bloomberg/blpapi-http/issues/75","id":57958555,"number":75,"title":"Style guide: Add section about switch","user":{"login":"yupinghu","id":7786724,"avatar_url":"https://avatars.githubusercontent.com/u/7786724?v=3","gravatar_id":"","url":"https://api.github.com/users/yupinghu","html_url":"https://github.com/yupinghu","followers_url":"https://api.github.com/users/yupinghu/followers","following_url":"https://api.github.com/users/yupinghu/following{/other_user}","gists_url":"https://api.github.com/users/yupinghu/gists{/gist_id}","starred_url":"https://api.github.com/users/yupinghu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yupinghu/subscriptions","organizations_url":"https://api.github.com/users/yupinghu/orgs","repos_url":"https://api.github.com/users/yupinghu/repos","events_url":"https://api.github.com/users/yupinghu/events{/privacy}","received_events_url":"https://api.github.com/users/yupinghu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-17T17:59:16Z","updated_at":"2015-02-17T17:59:35Z","closed_at":null,"body":"See comment on #73 re: switch and add that to the style guide."},"comment":{"url":"https://api.github.com/repos/bloomberg/blpapi-http/issues/comments/74716859","html_url":"https://github.com/bloomberg/blpapi-http/issues/75#issuecomment-74716859","issue_url":"https://api.github.com/repos/bloomberg/blpapi-http/issues/75","id":74716859,"user":{"login":"yupinghu","id":7786724,"avatar_url":"https://avatars.githubusercontent.com/u/7786724?v=3","gravatar_id":"","url":"https://api.github.com/users/yupinghu","html_url":"https://github.com/yupinghu","followers_url":"https://api.github.com/users/yupinghu/followers","following_url":"https://api.github.com/users/yupinghu/following{/other_user}","gists_url":"https://api.github.com/users/yupinghu/gists{/gist_id}","starred_url":"https://api.github.com/users/yupinghu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yupinghu/subscriptions","organizations_url":"https://api.github.com/users/yupinghu/orgs","repos_url":"https://api.github.com/users/yupinghu/repos","events_url":"https://api.github.com/users/yupinghu/events{/privacy}","received_events_url":"https://api.github.com/users/yupinghu/received_events","type":"User","site_admin":false},"created_at":"2015-02-17T17:59:35Z","updated_at":"2015-02-17T17:59:35Z","body":"Namely:\r\n\r\nStyle and assert/error on default fall-through.\r\n\r\n```typescript\r\n    switch (req.query.action) {\r\n        case 'subscribe': {\r\n            return onSubscribe(req, res, next);\r\n        } break;\r\n        case 'unsubscribe': { \r\n            return onUnsubscribe(req, res, next);\r\n        } break;\r\n        default: {\r\n            assert(false, 'some descriptive message here');\r\n        } break;\r\n    }\r\n```"}}