Open treeowl opened 6 years ago
I think this means we should only have the Typeable
version and the dynamic version. What say you?
I'm sad, but feel free to make it so.
There are two options: we can either use the Typed
version as the default, or one with different insertion behavior. The other option is for a key to replace an existing one with the same stable name but a different type.
Suppose we have
Thanks to some CMM-level optimizations, it is possible that
x
andy
will live at the same address. I can insert(x, Identity (Left 3))
into the map, then perform a lookup withy
and get something utterly wrong.