{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"open","user":{"avatar_url":"https://secure.gravatar.com/avatar/6f256d610f74892652a0b5f9dd0a2c0d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"6f256d610f74892652a0b5f9dd0a2c0d","url":"https://api.github.com/users/nandykins","login":"nandykins","id":1149047},"milestone":null,"updated_at":"2011-11-05T07:06:41Z","labels":[],"assignee":null,"closed_at":null,"comments":15,"url":"https://api.github.com/repos/nandykins/-g-pl/issues/12","body":"We're in dire need of some sort of loop expression.\r\n\r\nDo you think we should just add labels and goto, for the trolling factor?","html_url":"https://github.com/nandykins/-g-pl/issues/12","title":"Repetition","number":12,"id":2130314,"created_at":"2011-11-03T08:42:17Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/6f256d610f74892652a0b5f9dd0a2c0d?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"6f256d610f74892652a0b5f9dd0a2c0d","url":"https://api.github.com/users/nandykins","login":"nandykins","id":1149047},"updated_at":"2011-11-05T07:06:41Z","url":"https://api.github.com/repos/nandykins/-g-pl/issues/comments/2639263","body":"To summarize the four methods of modifying control flow at the moment:\r\n\r\ngb2 [expression] <- this will return from inside a block, whatever that may be. That is, anything inside { } or the main program (which is also a block). However, note that this will not stop loops, it will behave similarly to a continue. If the loop's condition happens to yield true at the same time, it will effectively work like a sage but this is not always the case.\r\n\r\nnoko [expression] <- this will, like gb2, return from inside a loop's expression - the only difference between the two is that noko matches on loops only, and gb2 matches on all blocks. So if you have a conditional inside a loop, and you put gb2, it would only return out of the conditional. noko will definitely return out of the entire loop body.\r\n\r\nsage [expression] <- works like noko but also stops the loop\r\n\r\n[expression].jpg <- works like the above, except it binds to functions instead of loops or blocks","id":2639263,"created_at":"2011-11-05T07:06:41Z"}}