Your conclusion is correct. The final switch should happen pretty soon on 0.5 master. Until then, the work-around is to prefix all your brackets with 'Any', including the inner arrays.
On Wednesday, November 18, 2015 at 12:20:15 PM UTC-5, [email protected] wrote: > > Hi everyone, > > Julia seems cool! Vector literals have me completely stumped though. A > little help? > What is going on here? > > ["1","1"] => ASCIIString["1","1"] > ["1",["1"]] => ASCIIString["1","1"] + "WARNING: [a,b] concatenation is > deprecated; use [a;b] instead" > ["1",Any["1"]] => ASCIIString["1","1"] + "WARNING: [a,b] concatenation is > deprecated; use [a;b] instead" > Any["1",["1"]] => Any["1", ASCIIString["1"]] # not what I want, the second > array should be general purpose a la python > > Basically I just want general heterogeneous lists like python. > > I read about the {} syntax somewhere which does exactly what I want, but > I keep getting deprecation warnings, so I'd rather not poke that dragon. > It seems based on the fact that ["1",["1"]] generates a deprecated warning > about behaving wrong, and {"1",{"1"}} is completely deprecated syntax that > at some point, ["1",["1"]] should do what I want it to, but this feature > has somehow been only half migrated over? > > Help! > > Vishesh >
