{"action":"created","issue":{"url":"https://api.github.com/repos/EMGroup/js-eden/issues/209","repository_url":"https://api.github.com/repos/EMGroup/js-eden","labels_url":"https://api.github.com/repos/EMGroup/js-eden/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/EMGroup/js-eden/issues/209/comments","events_url":"https://api.github.com/repos/EMGroup/js-eden/issues/209/events","html_url":"https://github.com/EMGroup/js-eden/issues/209","id":170037582,"number":209,"title":"Range Scoping Doesn't Support Empty Ranges","user":{"login":"ElizabethHudnott","id":8741304,"avatar_url":"https://avatars.githubusercontent.com/u/8741304?v=3","gravatar_id":"","url":"https://api.github.com/users/ElizabethHudnott","html_url":"https://github.com/ElizabethHudnott","followers_url":"https://api.github.com/users/ElizabethHudnott/followers","following_url":"https://api.github.com/users/ElizabethHudnott/following{/other_user}","gists_url":"https://api.github.com/users/ElizabethHudnott/gists{/gist_id}","starred_url":"https://api.github.com/users/ElizabethHudnott/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElizabethHudnott/subscriptions","organizations_url":"https://api.github.com/users/ElizabethHudnott/orgs","repos_url":"https://api.github.com/users/ElizabethHudnott/repos","events_url":"https://api.github.com/users/ElizabethHudnott/events{/privacy}","received_events_url":"https://api.github.com/users/ElizabethHudnott/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-08-08T22:09:20Z","updated_at":"2016-08-09T12:22:05Z","closed_at":"2016-08-09T12:22:05Z","body":"Example:\r\n\r\nl = [ ];\r\nj is -1 if i == 1 else l[i] + 1;\r\nl2 is j with i is 1..l#;\r\n\r\nl2 is evaluated as [-1] but should be [ ] according to the laws of math.\r\n"},"comment":{"url":"https://api.github.com/repos/EMGroup/js-eden/issues/comments/238536325","html_url":"https://github.com/EMGroup/js-eden/issues/209#issuecomment-238536325","issue_url":"https://api.github.com/repos/EMGroup/js-eden/issues/209","id":238536325,"user":{"login":"knicos","id":555666,"avatar_url":"https://avatars.githubusercontent.com/u/555666?v=3","gravatar_id":"","url":"https://api.github.com/users/knicos","html_url":"https://github.com/knicos","followers_url":"https://api.github.com/users/knicos/followers","following_url":"https://api.github.com/users/knicos/following{/other_user}","gists_url":"https://api.github.com/users/knicos/gists{/gist_id}","starred_url":"https://api.github.com/users/knicos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knicos/subscriptions","organizations_url":"https://api.github.com/users/knicos/orgs","repos_url":"https://api.github.com/users/knicos/repos","events_url":"https://api.github.com/users/knicos/events{/privacy}","received_events_url":"https://api.github.com/users/knicos/received_events","type":"User","site_admin":false},"created_at":"2016-08-09T12:22:05Z","updated_at":"2016-08-09T12:22:05Z","body":"What \"law of maths\" is that? Doesn't seem like a law so much as a programming convention being incorrectly brought over. Please read my comment more carefully, I say that 1..0 has two values, not 1..-40.\r\n\r\nThe increment can easily be switched from 1 to -1 automatically depending on range direction.\r\n\r\nIf the increment is explicitly specified as the opposite sign to that required a runtime error is reported to the script saying \"Infinite Range Detected\".\r\n\r\nThe direction and error checking is done at runtime so it does not matter if the upper and lower are expressions.\r\n\r\nRegarding Meurigs expected result ... again a miss understanding of what the range is due to expectations being brought over from \"for\" loops. It is NOT a \"for\" loop but, for example, `x is 1..5` is equivalent to `x in [1,2,3,4,5]`."}}
{"actor":{"display_login":"knicos"}}