Closed
Description
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))