Julia newby and find this behavior a bit confusing:
----
d = Dict{Integer, Integer}()
d[3] = 1
d[convert(Int32, 3)] = 5
d
---output----
[3=>1,3=>5]
------
similarly if i do:
d = Dict{Int32, Int32}()
d[convert(Int32, 3)] = 5
get(d, 3, 0)
---output----
0
----
i feel like there should be an error in the second case. is there any way
to enforce either promotion or an error? or do other people think the
above behavior is correct.
this is different than the behavior in say python, where d[5.0] = d[5]
any help would be very appreciated.
thanks, mike