I have to wonder... why are you writing collect(1:10) so much? I almost never use that pattern, as it's much better to keep the range as-is (it's just as good as an Array, without the memory usage).
On Mon, Mar 7, 2016 at 8:40 AM, Daniel Carrera <[email protected]> wrote: > Hello, > > In the last major release of Julia some syntax was deprecated. For example: > > {"a" => 3} # Deprecated. Use Dict("a" => 3) > > [1:10] # Deprecated. Use collect(1:10) > > There was also a change with the commas, but I can't remember what it is. > Some times I get an error saying that apparently I'm supposed to use a > semicolon, but I can't remember when that happens. > > Anyway, I miss the earlier cleaner syntax. Mainly, I don't like > "collect(1:10)". I don't mind Dict(), because it's not something I write > very often, and "Dict" is short enough. But I don't like having to write > "collect(1:10)" as often as I do. Can someone explain what happened? What > was wrong with the original syntax? MATLAB has managed to survive with the > [1:10] syntax for a long time, so I don't see why it's so terrible. > > In general, I like compact syntax and that is one of the reasons why I > switched to Julia. I would rather not see Julia become more verbose over > time. > > Cheers, > Daniel. >
