{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/14660","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/14660/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/14660/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/14660/events","html_url":"https://github.com/JuliaLang/julia/pull/14660","id":126303206,"number":14660,"title":"Consistency of read() and write() functions (per #14608)","user":{"login":"samoconnor","id":8266283,"avatar_url":"https://avatars.githubusercontent.com/u/8266283?v=3","gravatar_id":"","url":"https://api.github.com/users/samoconnor","html_url":"https://github.com/samoconnor","followers_url":"https://api.github.com/users/samoconnor/followers","following_url":"https://api.github.com/users/samoconnor/following{/other_user}","gists_url":"https://api.github.com/users/samoconnor/gists{/gist_id}","starred_url":"https://api.github.com/users/samoconnor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samoconnor/subscriptions","organizations_url":"https://api.github.com/users/samoconnor/orgs","repos_url":"https://api.github.com/users/samoconnor/repos","events_url":"https://api.github.com/users/samoconnor/events{/privacy}","received_events_url":"https://api.github.com/users/samoconnor/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JuliaLang/julia/labels/needs-tests","name":"needs-tests","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2016-01-12T23:28:53Z","updated_at":"2016-01-17T23:47:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/JuliaLang/julia/pulls/14660","html_url":"https://github.com/JuliaLang/julia/pull/14660","diff_url":"https://github.com/JuliaLang/julia/pull/14660.diff","patch_url":"https://github.com/JuliaLang/julia/pull/14660.patch"},"body":"As proposed in https://github.com/JuliaLang/julia/issues/14608.\r\n\r\nThe discussion in #14608 includes ideas for better ways to do things in the future.\r\nThis PR is limited to making a few tweaks to the existing interface to make it a little more consistent:\r\n\r\n* Deprecate `readbytes` and `readall`, replaced by `read` and `readstring`.\r\n\r\n* Accept `filename::AbstractString` as 1st arg for `write`, `read`, `read!`, `readuntil`, `readline` and `readlines`.\r\n\r\n* `write(to::IO, from::IO)` per https://github.com/JuliaLang/julia/issues/14628"},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/172396320","html_url":"https://github.com/JuliaLang/julia/pull/14660#issuecomment-172396320","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/14660","id":172396320,"user":{"login":"JeffBezanson","id":744556,"avatar_url":"https://avatars.githubusercontent.com/u/744556?v=3","gravatar_id":"","url":"https://api.github.com/users/JeffBezanson","html_url":"https://github.com/JeffBezanson","followers_url":"https://api.github.com/users/JeffBezanson/followers","following_url":"https://api.github.com/users/JeffBezanson/following{/other_user}","gists_url":"https://api.github.com/users/JeffBezanson/gists{/gist_id}","starred_url":"https://api.github.com/users/JeffBezanson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeffBezanson/subscriptions","organizations_url":"https://api.github.com/users/JeffBezanson/orgs","repos_url":"https://api.github.com/users/JeffBezanson/repos","events_url":"https://api.github.com/users/JeffBezanson/events{/privacy}","received_events_url":"https://api.github.com/users/JeffBezanson/received_events","type":"User","site_admin":false},"created_at":"2016-01-17T23:47:25Z","updated_at":"2016-01-17T23:47:25Z","body":"I suspect we will still want `readstring(f)` as a shorthand since this is such a basic operation."}}