Is it possible to dispatch on a type only, not having an instance with a type?
This works:
function choose(t::Float64)
println("choosing t::Float64")
end
function choose(t::Tuple)
println("choosing t::Tuple")
end
tup = (1,2)
choose(tup)
flt = randn()
choose(flt)
For a streaming IO application, I would like to use