It is well known that the dict syntax in 0.4 has changed

    julia> [1=>2,3=>4]
    WARNING: deprecated syntax "[a=>b, ...]".
    Use "Dict(a=>b, ...)" instead.

However, I was surprised to notice that a similar syntax still works for dict comprehensions, without warning:

    julia> [i => 2i for i = 1:3]
    Dict{Int64,Int64} with 3 entries:
      2 => 4
      3 => 6
      1 => 2

Is this intentional?

Reply via email to