{"action":"created","issue":{"url":"https://api.github.com/repos/huonw/cfor/issues/3","labels_url":"https://api.github.com/repos/huonw/cfor/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/huonw/cfor/issues/3/comments","events_url":"https://api.github.com/repos/huonw/cfor/issues/3/events","html_url":"https://github.com/huonw/cfor/pull/3","id":116635082,"number":3,"title":"Added repetition for multiple declarations/steps","user":{"login":"crossroads1112","id":3654575,"avatar_url":"https://avatars.githubusercontent.com/u/3654575?v=3","gravatar_id":"","url":"https://api.github.com/users/crossroads1112","html_url":"https://github.com/crossroads1112","followers_url":"https://api.github.com/users/crossroads1112/followers","following_url":"https://api.github.com/users/crossroads1112/following{/other_user}","gists_url":"https://api.github.com/users/crossroads1112/gists{/gist_id}","starred_url":"https://api.github.com/users/crossroads1112/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crossroads1112/subscriptions","organizations_url":"https://api.github.com/users/crossroads1112/orgs","repos_url":"https://api.github.com/users/crossroads1112/repos","events_url":"https://api.github.com/users/crossroads1112/events{/privacy}","received_events_url":"https://api.github.com/users/crossroads1112/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"huonw","id":1203825,"avatar_url":"https://avatars.githubusercontent.com/u/1203825?v=3","gravatar_id":"","url":"https://api.github.com/users/huonw","html_url":"https://github.com/huonw","followers_url":"https://api.github.com/users/huonw/followers","following_url":"https://api.github.com/users/huonw/following{/other_user}","gists_url":"https://api.github.com/users/huonw/gists{/gist_id}","starred_url":"https://api.github.com/users/huonw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huonw/subscriptions","organizations_url":"https://api.github.com/users/huonw/orgs","repos_url":"https://api.github.com/users/huonw/repos","events_url":"https://api.github.com/users/huonw/events{/privacy}","received_events_url":"https://api.github.com/users/huonw/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-11-12T20:38:31Z","updated_at":"2015-11-12T22:56:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/huonw/cfor/pulls/3","html_url":"https://github.com/huonw/cfor/pull/3","diff_url":"https://github.com/huonw/cfor/pull/3.diff","patch_url":"https://github.com/huonw/cfor/pull/3.patch"},"body":"One of the things I missed about C for loops was the ability to use multiple declarations and multiple steps like so:\r\n\r\n    for (size_t i = 0, y = 3; i < 10; i++, y+=4) {}\r\n\r\nI did the best I could at translating the syntax to cfor:\r\n\r\n    cfor!(let mut x = 0, let mut y = 3; x < 10; x+=1, y+=1; {});"},"comment":{"url":"https://api.github.com/repos/huonw/cfor/issues/comments/156263274","html_url":"https://github.com/huonw/cfor/pull/3#issuecomment-156263274","issue_url":"https://api.github.com/repos/huonw/cfor/issues/3","id":156263274,"user":{"login":"huonw","id":1203825,"avatar_url":"https://avatars.githubusercontent.com/u/1203825?v=3","gravatar_id":"","url":"https://api.github.com/users/huonw","html_url":"https://github.com/huonw","followers_url":"https://api.github.com/users/huonw/followers","following_url":"https://api.github.com/users/huonw/following{/other_user}","gists_url":"https://api.github.com/users/huonw/gists{/gist_id}","starred_url":"https://api.github.com/users/huonw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huonw/subscriptions","organizations_url":"https://api.github.com/users/huonw/orgs","repos_url":"https://api.github.com/users/huonw/repos","events_url":"https://api.github.com/users/huonw/events{/privacy}","received_events_url":"https://api.github.com/users/huonw/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T22:56:01Z","updated_at":"2015-11-12T22:56:01Z","body":"Thanks!\r\n\r\nCould you add a test or two to `tests/test.rs`? (e.g. `multiple_parts` that has a few `cfor` invocations with some with multiple inits, some with multiple steps and some with both.)"}}