On Thursday, September 3, 2015 at 10:38:15 AM UTC-4, Jeff Bezanson wrote:
>
> There is no need to write the type over and over again. You can say 
>
> const D = Dict{Symbol, Any} 
>
> D(:a => "", :b => 0, ...) 
>

There is also often no need to write the type at all: 

julia> Dict(:a => "", :b => 0)

Dict{Symbol,Any} with 2 entries:

  :a => ""

  :b => 0


The Dict constructor automatically computes the common parent of the key 
and value types.

Reply via email to