On Thursday, September 3, 2015 at 11:22:09 AM UTC-4, [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. >
Why is that a puzzle? [1:10] seems like it should be a vector with one element, a range 1:10. The fact that it automatically splats is a bit of a surprise, which doesn't feel consistent. Dict(:range=>1:10) does what I'd expect. I'm hoping that that is being deprecated so that in 0.5 in can do the more consistent thing.
