I have a question which is somewhat related to this question
(https://groups.google.com/forum/m/?fromgroups#!topic/julia-users/bldp27KJCjY)
but mine is more of a style question rather than a language design question.
I find myself often filling an array of Array{Float64,1}'s in julia.
I usually do this by initializing an empty array then using push!
x = Array{Float64,1}[]
while someconditional
nextvec = getvec(...)
push!(x,nextvec)
end
I'm wondering how to make the Float64 specification more flexible so that the
code works when used by someone on a machine using Float32, for example, but
still keep the performance of having the entries of x all a homogeneous type. I
would be tempted to initialize x=Array{FloatingPoint,1}[] but that allows some
entries of x to be Array{Float64,1} and others to be Array{Float32,1} for
example.