Skip to content

read!, etc. #5970

Closed
Closed
@StefanKarpinski

Description

@StefanKarpinski

Technically, the methods of read that fills a buffer should be named read!. I propose the following:

read(io::IO, T::Type) # read a single value of type T
read!{T}(io::IO, buf::Array{T}) # fill buf with values of type T from io
read(io::IO, T::Type, dims::Int...) = read!(io, Array(T,dims))

Metadata

Metadata

Assignees

No one assigned

    Labels

    breakingThis change will break codeioInvolving the I/O subsystem: libuv, read, write, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions