{"action":"closed","issue":{"url":"https://api.github.com/repos/evhub/coconut/issues/15","labels_url":"https://api.github.com/repos/evhub/coconut/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/evhub/coconut/issues/15/comments","events_url":"https://api.github.com/repos/evhub/coconut/issues/15/events","html_url":"https://github.com/evhub/coconut/issues/15","id":91308458,"number":15,"title":"Add in-line conditionals","user":{"login":"evhub","id":1337598,"avatar_url":"https://avatars.githubusercontent.com/u/1337598?v=3","gravatar_id":"","url":"https://api.github.com/users/evhub","html_url":"https://github.com/evhub","followers_url":"https://api.github.com/users/evhub/followers","following_url":"https://api.github.com/users/evhub/following{/other_user}","gists_url":"https://api.github.com/users/evhub/gists{/gist_id}","starred_url":"https://api.github.com/users/evhub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evhub/subscriptions","organizations_url":"https://api.github.com/users/evhub/orgs","repos_url":"https://api.github.com/users/evhub/repos","events_url":"https://api.github.com/users/evhub/events{/privacy}","received_events_url":"https://api.github.com/users/evhub/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/evhub/coconut/labels/feature","name":"feature","color":"0052cc"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-26T17:21:15Z","updated_at":"2015-07-02T00:02:16Z","closed_at":"2015-07-02T00:02:16Z","body":"Proposed syntax:\r\n```\r\nx = (a if c else b)\r\nx = (a if c)\r\n```\r\nCompiles to:\r\n```\r\nif c:\r\n    coconut_if = a\r\nelse:\r\n    coconut_if = b\r\nx = coconut_if\r\nif c:\r\n    coconut_if = a\r\nelse:\r\n    coconut_if = None\r\nx = coconut_if\r\n```"}}