{"action":"closed","issue":{"url":"https://api.github.com/repos/Haacked/Scientist.net/issues/16","repository_url":"https://api.github.com/repos/Haacked/Scientist.net","labels_url":"https://api.github.com/repos/Haacked/Scientist.net/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/Haacked/Scientist.net/issues/16/comments","events_url":"https://api.github.com/repos/Haacked/Scientist.net/issues/16/events","html_url":"https://github.com/Haacked/Scientist.net/issues/16","id":131994299,"number":16,"title":"Support different return types for Control/Candidate methods","user":{"login":"akamud","id":954102,"avatar_url":"https://avatars.githubusercontent.com/u/954102?v=3","gravatar_id":"","url":"https://api.github.com/users/akamud","html_url":"https://github.com/akamud","followers_url":"https://api.github.com/users/akamud/followers","following_url":"https://api.github.com/users/akamud/following{/other_user}","gists_url":"https://api.github.com/users/akamud/gists{/gist_id}","starred_url":"https://api.github.com/users/akamud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akamud/subscriptions","organizations_url":"https://api.github.com/users/akamud/orgs","repos_url":"https://api.github.com/users/akamud/repos","events_url":"https://api.github.com/users/akamud/events{/privacy}","received_events_url":"https://api.github.com/users/akamud/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-07T18:15:31Z","updated_at":"2016-02-17T20:00:56Z","closed_at":"2016-02-17T20:00:56Z","body":"This implementation depends on decisions made for #15.\r\n\r\nBasically the idea is that sometimes the candidate code returns a different, but relatable value. For example:\r\n\r\n```C#\r\npublic int ControlMethod(int foo)\r\n{\r\n    return 1;\r\n}\r\n\r\npublic bool CandidateMethod(int foo)\r\n{\r\n    return true;\r\n}\r\n```\r\n\r\nThe candidate method now returns a `bool`, and while `bool` and `int` are different, you could easily map `1 -> true` and `0 -> false`.\r\n\r\nThis could be implemented creating a new interface `Experiment<TControl, TCandidate>` that would allow the user to specify different types for each method. In this case, providing a `Compare` method could even be required for the interface.\r\n\r\nWhat do you think?"}}