{"action":"created","issue":{"url":"https://api.github.com/repos/daokoder/dao/issues/427","labels_url":"https://api.github.com/repos/daokoder/dao/issues/427/labels{/name}","comments_url":"https://api.github.com/repos/daokoder/dao/issues/427/comments","events_url":"https://api.github.com/repos/daokoder/dao/issues/427/events","html_url":"https://github.com/daokoder/dao/issues/427","id":93489030,"number":427,"title":"Thoughts on do-while","user":{"login":"Night-walker","id":5074460,"avatar_url":"https://avatars.githubusercontent.com/u/5074460?v=3","gravatar_id":"","url":"https://api.github.com/users/Night-walker","html_url":"https://github.com/Night-walker","followers_url":"https://api.github.com/users/Night-walker/followers","following_url":"https://api.github.com/users/Night-walker/following{/other_user}","gists_url":"https://api.github.com/users/Night-walker/gists{/gist_id}","starred_url":"https://api.github.com/users/Night-walker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Night-walker/subscriptions","organizations_url":"https://api.github.com/users/Night-walker/orgs","repos_url":"https://api.github.com/users/Night-walker/repos","events_url":"https://api.github.com/users/Night-walker/events{/privacy}","received_events_url":"https://api.github.com/users/Night-walker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-07-07T09:51:04Z","updated_at":"2015-07-29T11:23:39Z","closed_at":null,"body":"Just as with #388, I tread on the holy land of C-like languages, daring to cast my vicious sight on the innocent `do-while` loop.\r\n\r\nReally, it's so infrequently useful, that it may be safely removed from the language together with the `do` keyword. As an alternative, I'd rather welcome something like `loop` or `forever` for unconditional looping which has arguably wider application. Besides, it covers the `do-while` scenario well enough:\r\n```ruby\r\ndo {\r\n   ...\r\n}\r\nwhile (condition)\r\n\r\n#vs\r\n\r\nloop {\r\n   ...\r\n   if (condition) break\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/daokoder/dao/issues/comments/125922968","html_url":"https://github.com/daokoder/dao/issues/427#issuecomment-125922968","issue_url":"https://api.github.com/repos/daokoder/dao/issues/427","id":125922968,"user":{"login":"Night-walker","id":5074460,"avatar_url":"https://avatars.githubusercontent.com/u/5074460?v=3","gravatar_id":"","url":"https://api.github.com/users/Night-walker","html_url":"https://github.com/Night-walker","followers_url":"https://api.github.com/users/Night-walker/followers","following_url":"https://api.github.com/users/Night-walker/following{/other_user}","gists_url":"https://api.github.com/users/Night-walker/gists{/gist_id}","starred_url":"https://api.github.com/users/Night-walker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Night-walker/subscriptions","organizations_url":"https://api.github.com/users/Night-walker/orgs","repos_url":"https://api.github.com/users/Night-walker/repos","events_url":"https://api.github.com/users/Night-walker/events{/privacy}","received_events_url":"https://api.github.com/users/Night-walker/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T11:23:39Z","updated_at":"2015-07-29T11:23:39Z","body":"It would be way too boring if you just agreed :)"}}