{"action":"created","issue":{"url":"https://api.github.com/repos/Munksgaard/session-types/issues/20","labels_url":"https://api.github.com/repos/Munksgaard/session-types/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/Munksgaard/session-types/issues/20/comments","events_url":"https://api.github.com/repos/Munksgaard/session-types/issues/20/events","html_url":"https://github.com/Munksgaard/session-types/pull/20","id":97306099,"number":20,"title":"Remove accept, request, and borrow versions","user":{"login":"Munksgaard","id":230613,"avatar_url":"https://avatars.githubusercontent.com/u/230613?v=3","gravatar_id":"","url":"https://api.github.com/users/Munksgaard","html_url":"https://github.com/Munksgaard","followers_url":"https://api.github.com/users/Munksgaard/followers","following_url":"https://api.github.com/users/Munksgaard/following{/other_user}","gists_url":"https://api.github.com/users/Munksgaard/gists{/gist_id}","starred_url":"https://api.github.com/users/Munksgaard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Munksgaard/subscriptions","organizations_url":"https://api.github.com/users/Munksgaard/orgs","repos_url":"https://api.github.com/users/Munksgaard/repos","events_url":"https://api.github.com/users/Munksgaard/events{/privacy}","received_events_url":"https://api.github.com/users/Munksgaard/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-26T10:36:42Z","updated_at":"2015-07-27T15:10:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Munksgaard/session-types/pulls/20","html_url":"https://github.com/Munksgaard/session-types/pull/20","diff_url":"https://github.com/Munksgaard/session-types/pull/20.diff","patch_url":"https://github.com/Munksgaard/session-types/pull/20.patch"},"body":"These functions aren't used any more, confuse users and clutter the\r\nnamespace.\r\n\r\nAll occurences of code like\r\n\r\n```rust\r\nlet (tx, rx) = channel();\r\nlet t1 = spawn(move || srv(accept(tx).unwrap()));\r\nlet t2 = spawn(move || cli(request(rx).unwrap()));\r\n```\r\n\r\ncan be replaced by the shorter and nicer\r\n\r\n```rust\r\nlet (c1, c2) = session_channel();\r\nlet t1 = spawn(move || srv(c1));\r\nlet t2 = spawn(move || cli(c2));\r\n```\r\n\r\nFor the tests to still pass, we need to remove the issue-8 compile-fail\r\ntest, which tested against a soundness bug in request."},"comment":{"url":"https://api.github.com/repos/Munksgaard/session-types/issues/comments/125240501","html_url":"https://github.com/Munksgaard/session-types/pull/20#issuecomment-125240501","issue_url":"https://api.github.com/repos/Munksgaard/session-types/issues/20","id":125240501,"user":{"login":"Munksgaard","id":230613,"avatar_url":"https://avatars.githubusercontent.com/u/230613?v=3","gravatar_id":"","url":"https://api.github.com/users/Munksgaard","html_url":"https://github.com/Munksgaard","followers_url":"https://api.github.com/users/Munksgaard/followers","following_url":"https://api.github.com/users/Munksgaard/following{/other_user}","gists_url":"https://api.github.com/users/Munksgaard/gists{/gist_id}","starred_url":"https://api.github.com/users/Munksgaard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Munksgaard/subscriptions","organizations_url":"https://api.github.com/users/Munksgaard/orgs","repos_url":"https://api.github.com/users/Munksgaard/repos","events_url":"https://api.github.com/users/Munksgaard/events{/privacy}","received_events_url":"https://api.github.com/users/Munksgaard/received_events","type":"User","site_admin":false},"created_at":"2015-07-27T15:10:49Z","updated_at":"2015-07-27T15:10:49Z","body":"@laumann: r?"}}