Seems that Any[...] is not exactly equal to {...} in Julia 0.4. What is the 
best way to rewrite {a b;c d} ?

julia> {1 [1,2];[1,2,3] 4}

WARNING: deprecated syntax "{a b; c d}".
Use "Any[a b; c d]" instead.
2x2 Array{Any,2}:
 1          [1,2]
  [1,2,3]  4     

julia> Any[1 [1,2];[1,2,3] 4]
ERROR: DimensionMismatch("mismatch in dimension 1 (expected 1 got 2)")
 in cat_t at abstractarray.jl:850
 in hcat at abstractarray.jl:875
 in typed_hvcat at abstractarray.jl:1026

Reply via email to