{"action":"closed","issue":{"url":"https://api.github.com/repos/ceylon/ceylon-spec/issues/1396","labels_url":"https://api.github.com/repos/ceylon/ceylon-spec/issues/1396/labels{/name}","comments_url":"https://api.github.com/repos/ceylon/ceylon-spec/issues/1396/comments","events_url":"https://api.github.com/repos/ceylon/ceylon-spec/issues/1396/events","html_url":"https://github.com/ceylon/ceylon-spec/issues/1396","id":98648932,"number":1396,"title":"make void optional in anonymous functions","user":{"login":"gavinking","id":579974,"avatar_url":"https://avatars.githubusercontent.com/u/579974?v=3","gravatar_id":"","url":"https://api.github.com/users/gavinking","html_url":"https://github.com/gavinking","followers_url":"https://api.github.com/users/gavinking/followers","following_url":"https://api.github.com/users/gavinking/following{/other_user}","gists_url":"https://api.github.com/users/gavinking/gists{/gist_id}","starred_url":"https://api.github.com/users/gavinking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gavinking/subscriptions","organizations_url":"https://api.github.com/users/gavinking/orgs","repos_url":"https://api.github.com/users/gavinking/repos","events_url":"https://api.github.com/users/gavinking/events{/privacy}","received_events_url":"https://api.github.com/users/gavinking/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ceylon/ceylon-spec/labels/improvement","name":"improvement","color":"02d7e1"}],"state":"closed","locked":false,"assignee":{"login":"gavinking","id":579974,"avatar_url":"https://avatars.githubusercontent.com/u/579974?v=3","gravatar_id":"","url":"https://api.github.com/users/gavinking","html_url":"https://github.com/gavinking","followers_url":"https://api.github.com/users/gavinking/followers","following_url":"https://api.github.com/users/gavinking/following{/other_user}","gists_url":"https://api.github.com/users/gavinking/gists{/gist_id}","starred_url":"https://api.github.com/users/gavinking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gavinking/subscriptions","organizations_url":"https://api.github.com/users/gavinking/orgs","repos_url":"https://api.github.com/users/gavinking/repos","events_url":"https://api.github.com/users/gavinking/events{/privacy}","received_events_url":"https://api.github.com/users/gavinking/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/ceylon/ceylon-spec/milestones/11","html_url":"https://github.com/ceylon/ceylon-spec/milestones/1.2","labels_url":"https://api.github.com/repos/ceylon/ceylon-spec/milestones/11/labels","id":798020,"number":11,"title":"1.2","description":"Serialization.","creator":{"login":"gavinking","id":579974,"avatar_url":"https://avatars.githubusercontent.com/u/579974?v=3","gravatar_id":"","url":"https://api.github.com/users/gavinking","html_url":"https://github.com/gavinking","followers_url":"https://api.github.com/users/gavinking/followers","following_url":"https://api.github.com/users/gavinking/following{/other_user}","gists_url":"https://api.github.com/users/gavinking/gists{/gist_id}","starred_url":"https://api.github.com/users/gavinking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gavinking/subscriptions","organizations_url":"https://api.github.com/users/gavinking/orgs","repos_url":"https://api.github.com/users/gavinking/repos","events_url":"https://api.github.com/users/gavinking/events{/privacy}","received_events_url":"https://api.github.com/users/gavinking/received_events","type":"User","site_admin":false},"open_issues":16,"closed_issues":208,"state":"open","created_at":"2014-09-22T09:55:40Z","updated_at":"2015-08-14T14:22:58Z","due_on":"2014-10-28T23:00:00Z","closed_at":null},"comments":8,"created_at":"2015-08-03T00:25:14Z","updated_at":"2015-08-14T14:22:59Z","closed_at":"2015-08-14T14:22:58Z","body":"Currently we let you drop the `function` keyword for anonymous functions that return a value, but we don't let you drop `void` for anonymous functions which don't return anything. It seems to me that this is too heavy-handed, and isn't very friendly for use with methods like `Iterable.each()`. I don't see why we couldn't relax this, letting you write:\r\n\r\n```ceylon\r\nstream.each((x) {\r\n    print(x);\r\n});\r\n```"}}