Don't know if this is terribly obvious, but what's the use case for 0-dimensional arrays? I get that it means 0D arrays "are basicaly like scalars", but they're not treated as such, I'd love to know in which cases they could be useful.
https://groups.google.com/forum/#!topic/julia-users/o9kC6tVKpTk El sábado, 19 de septiembre de 2015, 12:42:57 (UTC-5), Ismael VC escribió: > > I would have expected an error. > > Julia: > > julia> VERSION > v"0.4.0-rc1" > > julia> x = [1:5;]; > > julia> x[], x[1] > (1,1) > > Python: > > >>> x = range(1, 6) > >>> x[] > File "<stdin>", line 1 > x[] > ^ > SyntaxError: invalid syntax > > >
