{"action":"created","issue":{"url":"https://api.github.com/repos/ceylon/ceylon/issues/5872","labels_url":"https://api.github.com/repos/ceylon/ceylon/issues/5872/labels{/name}","comments_url":"https://api.github.com/repos/ceylon/ceylon/issues/5872/comments","events_url":"https://api.github.com/repos/ceylon/ceylon/issues/5872/events","html_url":"https://github.com/ceylon/ceylon/issues/5872","id":124649951,"number":5872,"title":"Update the Tour of Ceylon regarding function (un-)equality","user":{"login":"haumacher","id":5607145,"avatar_url":"https://avatars.githubusercontent.com/u/5607145?v=3","gravatar_id":"","url":"https://api.github.com/users/haumacher","html_url":"https://github.com/haumacher","followers_url":"https://api.github.com/users/haumacher/followers","following_url":"https://api.github.com/users/haumacher/following{/other_user}","gists_url":"https://api.github.com/users/haumacher/gists{/gist_id}","starred_url":"https://api.github.com/users/haumacher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haumacher/subscriptions","organizations_url":"https://api.github.com/users/haumacher/orgs","repos_url":"https://api.github.com/users/haumacher/repos","events_url":"https://api.github.com/users/haumacher/events{/privacy}","received_events_url":"https://api.github.com/users/haumacher/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-03T13:57:20Z","updated_at":"2016-01-11T13:44:14Z","closed_at":"2016-01-11T13:44:14Z","body":"#5594 breaks the example at http://ceylon-lang.org/documentation/1.2/tour/functions/:\r\n```\r\ninterface Subscription {\r\n    shared formal void cancel();\r\n}\r\nabstract class Component() {\r\n\r\n    variable {Anything(Event)*} observers = {};\r\n\r\n    shared Subscription addObserver(void observe(Event event)) {\r\n        observers = {observe, *observers};\r\n        object subscription satisfies Subscription {\r\n            cancel() => observers = \r\n                    { for (o in observers) if (o!=observe) o };\r\n        }\r\n        return subscription;\r\n    }\r\n\r\n    shared void fire(Event event) {\r\n        for (observe in observers) {\r\n            observe(event);\r\n        }\r\n    }\r\n}\r\n```\r\n\r\nThe observer cancelation no longer works, since it depends on observer functions being comparable for equality. "},"comment":{"url":"https://api.github.com/repos/ceylon/ceylon/issues/comments/170552378","html_url":"https://github.com/ceylon/ceylon/issues/5872#issuecomment-170552378","issue_url":"https://api.github.com/repos/ceylon/ceylon/issues/5872","id":170552378,"user":{"login":"FroMage","id":179265,"avatar_url":"https://avatars.githubusercontent.com/u/179265?v=3","gravatar_id":"","url":"https://api.github.com/users/FroMage","html_url":"https://github.com/FroMage","followers_url":"https://api.github.com/users/FroMage/followers","following_url":"https://api.github.com/users/FroMage/following{/other_user}","gists_url":"https://api.github.com/users/FroMage/gists{/gist_id}","starred_url":"https://api.github.com/users/FroMage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FroMage/subscriptions","organizations_url":"https://api.github.com/users/FroMage/orgs","repos_url":"https://api.github.com/users/FroMage/repos","events_url":"https://api.github.com/users/FroMage/events{/privacy}","received_events_url":"https://api.github.com/users/FroMage/received_events","type":"User","site_admin":false},"created_at":"2016-01-11T13:44:14Z","updated_at":"2016-01-11T13:44:14Z","body":"Moved to https://github.com/ceylon/ceylon-lang.org/issues/390"}}