{"action":"created","issue":{"url":"https://api.github.com/repos/dlang/phobos/issues/6403","repository_url":"https://api.github.com/repos/dlang/phobos","labels_url":"https://api.github.com/repos/dlang/phobos/issues/6403/labels{/name}","comments_url":"https://api.github.com/repos/dlang/phobos/issues/6403/comments","events_url":"https://api.github.com/repos/dlang/phobos/issues/6403/events","html_url":"https://github.com/dlang/phobos/pull/6403","id":310335423,"number":6403,"title":"Add std.traits.isStronglyPure","user":{"login":"scarface-one","id":22617812,"avatar_url":"https://avatars1.githubusercontent.com/u/22617812?v=4","gravatar_id":"","url":"https://api.github.com/users/scarface-one","html_url":"https://github.com/scarface-one","followers_url":"https://api.github.com/users/scarface-one/followers","following_url":"https://api.github.com/users/scarface-one/following{/other_user}","gists_url":"https://api.github.com/users/scarface-one/gists{/gist_id}","starred_url":"https://api.github.com/users/scarface-one/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scarface-one/subscriptions","organizations_url":"https://api.github.com/users/scarface-one/orgs","repos_url":"https://api.github.com/users/scarface-one/repos","events_url":"https://api.github.com/users/scarface-one/events{/privacy}","received_events_url":"https://api.github.com/users/scarface-one/received_events","type":"User","site_admin":false},"labels":[{"id":311499730,"url":"https://api.github.com/repos/dlang/phobos/labels/@andralex","name":"@andralex","color":"f7c6c7","default":false},{"id":416188433,"url":"https://api.github.com/repos/dlang/phobos/labels/Enhancement","name":"Enhancement","color":"5319e7","default":false},{"id":794245496,"url":"https://api.github.com/repos/dlang/phobos/labels/needs%20changelog","name":"needs changelog","color":"ba6a39","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":20,"created_at":"2018-04-01T16:19:48Z","updated_at":"2018-04-22T06:49:04Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/dlang/phobos/pulls/6403","html_url":"https://github.com/dlang/phobos/pull/6403","diff_url":"https://github.com/dlang/phobos/pull/6403.diff","patch_url":"https://github.com/dlang/phobos/pull/6403.patch"},"body":"See relevant NG discussion: https://forum.dlang.org/thread/p9m6lb$iud$1@digitalmars.com\r\n\r\nD currently allows functions to be pure even though they are not strictly pure.\r\nTo be strictly pure, a function must satisfy the following:\r\n* Each parameter:\r\n  - is `immutable`, OR\r\n  - can be converted automatically to `immutable` (i.e. has no mutable indirections) AND is passed by value\r\n* The return type:\r\n  - is `immutable`, OR\r\n  - can be converted automatically to `immutable`\r\n\r\nAndrei has said that `const` will not count for now\r\n\r\nI'm also unsure on how to unittest the second overload for isStronglyPure,  since overloading of functions within the local scope is not allowed. Please help with this. Thanks!"},"comment":{"url":"https://api.github.com/repos/dlang/phobos/issues/comments/383359727","html_url":"https://github.com/dlang/phobos/pull/6403#issuecomment-383359727","issue_url":"https://api.github.com/repos/dlang/phobos/issues/6403","id":383359727,"user":{"login":"andralex","id":566679,"avatar_url":"https://avatars1.githubusercontent.com/u/566679?v=4","gravatar_id":"","url":"https://api.github.com/users/andralex","html_url":"https://github.com/andralex","followers_url":"https://api.github.com/users/andralex/followers","following_url":"https://api.github.com/users/andralex/following{/other_user}","gists_url":"https://api.github.com/users/andralex/gists{/gist_id}","starred_url":"https://api.github.com/users/andralex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andralex/subscriptions","organizations_url":"https://api.github.com/users/andralex/orgs","repos_url":"https://api.github.com/users/andralex/repos","events_url":"https://api.github.com/users/andralex/events{/privacy}","received_events_url":"https://api.github.com/users/andralex/received_events","type":"User","site_admin":false},"created_at":"2018-04-22T06:49:04Z","updated_at":"2018-04-22T06:49:04Z","author_association":"OWNER","body":"@klickverbot all cool?"}}
{"actor":{"display_login":"andralex"}}