{"action":"created","issue":{"url":"https://api.github.com/repos/redox-os/ion/issues/105","repository_url":"https://api.github.com/repos/redox-os/ion","labels_url":"https://api.github.com/repos/redox-os/ion/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/redox-os/ion/issues/105/comments","events_url":"https://api.github.com/repos/redox-os/ion/issues/105/events","html_url":"https://github.com/redox-os/ion/pull/105","id":138273222,"number":105,"title":"Added functions without arguments","user":{"login":"nounoursheureux","id":6280095,"avatar_url":"https://avatars.githubusercontent.com/u/6280095?v=3","gravatar_id":"","url":"https://api.github.com/users/nounoursheureux","html_url":"https://github.com/nounoursheureux","followers_url":"https://api.github.com/users/nounoursheureux/followers","following_url":"https://api.github.com/users/nounoursheureux/following{/other_user}","gists_url":"https://api.github.com/users/nounoursheureux/gists{/gist_id}","starred_url":"https://api.github.com/users/nounoursheureux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nounoursheureux/subscriptions","organizations_url":"https://api.github.com/users/nounoursheureux/orgs","repos_url":"https://api.github.com/users/nounoursheureux/repos","events_url":"https://api.github.com/users/nounoursheureux/events{/privacy}","received_events_url":"https://api.github.com/users/nounoursheureux/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-03T19:23:33Z","updated_at":"2016-03-03T23:49:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/redox-os/ion/pulls/105","html_url":"https://github.com/redox-os/ion/pull/105","diff_url":"https://github.com/redox-os/ion/pull/105.diff","patch_url":"https://github.com/redox-os/ion/pull/105.patch"},"body":"Current syntax:\r\n```\r\nfn function_name\r\n   echo \"Hello, World\"\r\nend\r\n\r\nfunction_name\r\n> Hello, World\r\n```\r\n\r\nIt works, but I feel that my code is quite bad (lots of `clone()` for example) so if you have any comments don't hesitate to tell me.       \r\nAlso, the `if...end` and `for...end` blocks don't work inside a function, so for now they are just aliases (but I'm going to try to fix this)"},"comment":{"url":"https://api.github.com/repos/redox-os/ion/issues/comments/192024755","html_url":"https://github.com/redox-os/ion/pull/105#issuecomment-192024755","issue_url":"https://api.github.com/repos/redox-os/ion/issues/105","id":192024755,"user":{"login":"mmstick","id":4143535,"avatar_url":"https://avatars.githubusercontent.com/u/4143535?v=3","gravatar_id":"","url":"https://api.github.com/users/mmstick","html_url":"https://github.com/mmstick","followers_url":"https://api.github.com/users/mmstick/followers","following_url":"https://api.github.com/users/mmstick/following{/other_user}","gists_url":"https://api.github.com/users/mmstick/gists{/gist_id}","starred_url":"https://api.github.com/users/mmstick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmstick/subscriptions","organizations_url":"https://api.github.com/users/mmstick/orgs","repos_url":"https://api.github.com/users/mmstick/repos","events_url":"https://api.github.com/users/mmstick/events{/privacy}","received_events_url":"https://api.github.com/users/mmstick/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T23:49:14Z","updated_at":"2016-03-03T23:49:14Z","body":"It's near-impossible to avoid all the instances of `clone()` with the usage of `if let` statements. `if let` statements are desugared into match statements whose conditions must all be alive at the same time, and because self is being used as the conditions, self is being borrowed multiple times. In order to not use `clone()`, you'd have to rewrite it as a series of basic self-contained `if` statements."}}