Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecate read(io, type, dims) #21450

Closed
JeffBezanson opened this issue Apr 20, 2017 · 0 comments · Fixed by #22456
Closed

deprecate read(io, type, dims) #21450

JeffBezanson opened this issue Apr 20, 2017 · 0 comments · Fixed by #22456
Labels
domain:io Involving the I/O subsystem: libuv, read, write, etc. kind:deprecation This change introduces or involves a deprecation
Milestone

Comments

@JeffBezanson
Copy link
Sponsor Member

Just noticed this. We have read{T}(s::IO, ::Type{T}, dims::Dims) that's defined to call read!(s, Array{T}(dims)). It would be better just to deprecate it to that.

@JeffBezanson JeffBezanson added kind:deprecation This change introduces or involves a deprecation domain:io Involving the I/O subsystem: libuv, read, write, etc. labels Apr 20, 2017
@JeffBezanson JeffBezanson added this to the 1.0 milestone Apr 20, 2017
JeffBezanson added a commit that referenced this issue Jun 21, 2017
deprecate `read(io, type, dims)`, fix #21450
JeffBezanson added a commit that referenced this issue Jun 21, 2017
deprecate `read(io, type, dims)`, fix #21450
JeffBezanson added a commit that referenced this issue Jun 21, 2017
deprecate `read(io, type, dims)`, fix #21450
JeffBezanson added a commit that referenced this issue Jun 30, 2017
deprecate `read(io, type, dims)`, fix #21450
JeffBezanson added a commit that referenced this issue Jul 7, 2017
deprecate `read(io, type, dims)`, fix #21450
JeffBezanson added a commit that referenced this issue Jul 9, 2017
deprecate `read(io, type, dims)`, fix #21450
jeffwong pushed a commit to jeffwong/julia that referenced this issue Jul 24, 2017
traktofon added a commit to traktofon/julia that referenced this issue Feb 4, 2018
It says

> read(io, type, dims) is deprecated to read!(io, Array{type}(dims)) (JuliaLang#21450).

but in turn `Array{type}(dims)` is deprecated to `Array{type}(uninitialized, dims)`. Fix to inform users about the correct replacement.
JeffBezanson pushed a commit that referenced this issue Feb 4, 2018
It says

> read(io, type, dims) is deprecated to read!(io, Array{type}(dims)) (#21450).

but in turn `Array{type}(dims)` is deprecated to `Array{type}(uninitialized, dims)`. Fix to inform users about the correct replacement.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:io Involving the I/O subsystem: libuv, read, write, etc. kind:deprecation This change introduces or involves a deprecation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant