Re: [julia-users] Why does type inference not work for cat? (0.4-rc1)

2015-09-22 Thread Mauro
After looking into this, I think this may be tricky to avoid. But yes, possibly a bug or certainly a feature to improve on. One of the culprits is the following expression inside the cat function: [isa(x,AbstractArray) ? eltype(x) : typeof(x) for x in X] Checking this: f2(X...) =

[julia-users] Why does type inference not work for cat? (0.4-rc1)

2015-09-21 Thread Sheehan Olver
The code below can't infer the return type of cat. Should I file an issue or is this expected? v=rand(5) @code_warntype cat(1,0.0,v,0.0) ... end::ANY