You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 Tread!{T}(io::IO, buf::Array{T}) # fill buf with values of type T from ioread(io::IO, T::Type, dims::Int...) =read!(io, Array(T,dims))
The text was updated successfully, but these errors were encountered:
The ! is justified by the argument buf being filled. Other read methods wouldn't have it. If that's what you suggested before, I may have misunderstood.
+1. The current implementation of read{T}(io::IO, buf::Array{T}) is undocumented… I was about to add the documentation, but thought that read! was a better name myself. Glad to see this open issue.
Technically, the methods of
read
that fills a buffer should be namedread!
. I propose the following:The text was updated successfully, but these errors were encountered: