The motivation for this change is so people can more easily construct arrays-
of-arrays. In the future, [1:10] will construct a Vector{UnitRange{Int}}, not
a Vector{Int}. [1:10;] is concatenating and makes a Vector{Int}. (The first
does too, but we need a release cycle with deprecation warnings before we can
change it.)
--Tim
On Thursday, September 03, 2015 11:25:26 AM Jeff Bezanson wrote:
> For `[1:10]`, I recommend `collect(1:10)` or `[1:10;]`. Splatting
> should be avoided where possible.
>
> On Thu, Sep 3, 2015 at 11:22 AM, <[email protected]> wrote:
> > Early adopters shouldn't throw stones... :) But in fact I quite like the
> > new Dict syntax, which seems to be more explicit and readable. Curly
> > braces seem to be gainfully employed elsewhere doing type stuff. And
> > experts can make short cuts, either in Julia or in their editors...
> >
> > I confess I'm a bit puzzled by having to change `[1:10]` to `[1:10...]`,
> > but then again, `collect(1:10)` is more explicit and readable. So I think
> > it's progress.
> >
> > I suppose, as a former user of The Programming Language Formerly Known as
> > Mathematica", I might be more grateful than others for a less
> > punctuation-heavy language syntax. Mathematica Wizards can fluently read
> > and>
> > write code like this:
> > lcm = Fold[#/#2/._~_~x_|_:>#x&,1,{##}]&
> >
> > but I'm happy with a more readable approach.