Hi Nils,
My current work around is
## temporary compatibility hack
if VERSION < v"0.4.0-dev"
Base.Dict(z::Base.Zip2) = Dict(z.a, z.b)
end
On Monday, November 10, 2014 12:04:14 PM UTC+1, Nils Gudat wrote:
>
> Hi David,
>
> shouldnt it be @Compat Dict(zip(keys, values)) instead of
> @Compat.Dict(zip(keys, values)), i.e. a space between compat and dict
> rather than a dot method call?
>
> I was just following Stefan's syntax. The dots on my screen are about as
big as the stuck pieces of dust, but I really believe there is a period
there.
julia> @Compat.Dict(:foo => 2, :bar => 2)
> Dict{Symbol,Int64} with 2 entries:
> :bar => 2
> :foo => 2
>
> Macro programming is beyond the scope of my brain, anyway...
---david
> Best,
> Nils
>