{"action":"created","issue":{"url":"https://api.github.com/repos/mikey179/bovigo-callmap/issues/7","labels_url":"https://api.github.com/repos/mikey179/bovigo-callmap/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/mikey179/bovigo-callmap/issues/7/comments","events_url":"https://api.github.com/repos/mikey179/bovigo-callmap/issues/7/events","html_url":"https://github.com/mikey179/bovigo-callmap/issues/7","id":114482862,"number":7,"title":"Add default return values for scalar values","user":{"login":"mikey179","id":190475,"avatar_url":"https://avatars.githubusercontent.com/u/190475?v=3","gravatar_id":"","url":"https://api.github.com/users/mikey179","html_url":"https://github.com/mikey179","followers_url":"https://api.github.com/users/mikey179/followers","following_url":"https://api.github.com/users/mikey179/following{/other_user}","gists_url":"https://api.github.com/users/mikey179/gists{/gist_id}","starred_url":"https://api.github.com/users/mikey179/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikey179/subscriptions","organizations_url":"https://api.github.com/users/mikey179/orgs","repos_url":"https://api.github.com/users/mikey179/repos","events_url":"https://api.github.com/users/mikey179/events{/privacy}","received_events_url":"https://api.github.com/users/mikey179/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-01T17:50:25Z","updated_at":"2015-11-01T17:57:54Z","closed_at":"2015-11-01T17:57:54Z","body":"As there are already default return values when an instance returns itself it might be useful to have default return values for scalar values as well instead of returning `null` in such cases."},"comment":{"url":"https://api.github.com/repos/mikey179/bovigo-callmap/issues/comments/152848923","html_url":"https://github.com/mikey179/bovigo-callmap/issues/7#issuecomment-152848923","issue_url":"https://api.github.com/repos/mikey179/bovigo-callmap/issues/7","id":152848923,"user":{"login":"mikey179","id":190475,"avatar_url":"https://avatars.githubusercontent.com/u/190475?v=3","gravatar_id":"","url":"https://api.github.com/users/mikey179","html_url":"https://github.com/mikey179","followers_url":"https://api.github.com/users/mikey179/followers","following_url":"https://api.github.com/users/mikey179/following{/other_user}","gists_url":"https://api.github.com/users/mikey179/gists{/gist_id}","starred_url":"https://api.github.com/users/mikey179/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikey179/subscriptions","organizations_url":"https://api.github.com/users/mikey179/orgs","repos_url":"https://api.github.com/users/mikey179/repos","events_url":"https://api.github.com/users/mikey179/events{/privacy}","received_events_url":"https://api.github.com/users/mikey179/received_events","type":"User","site_admin":false},"created_at":"2015-11-01T17:57:54Z","updated_at":"2015-11-01T17:57:54Z","body":"After contemplating more about this I came to the conclusion that this feature will introduce more harm then it is useful. While automatically returning the instance when a method is declared to do so and sparing the writer of a test to specify this is more useful than dangerous, doing this automatically for other values raises the problem that an invalid test declaration is more likely to succeed when it should fail instead. Return values should always be declared explictly."}}