[julia-users] Dictionary type inference

2016-10-13 Thread Steven G. Johnson
Probably there is a missing promote_type rule Try promote_type(typeof(sin),typeof(cos)) ... if this gives Any, please file an issue. (I would try it myself, but am on my phone.)

[julia-users] Dictionary type inference

2016-10-13 Thread David van Leeuwen
Hello, I have stumbled across the following type inference issue for `Dict`s in julia-v0.5: julia> typeof(Dict(sin => sin, cos => cos)) Dict{Any,Any} julia> typeof(Dict(x => x for x in [sin, cos])) Dict{Function,Function} In Julia-0.5, functions got their own type. I was surprised to see