4 ms·
> can't fully represent heterogeneous values in a dict, given that you can't do this _at all_ in many statically compiled languages. This isn't really true. Fo
by grumpyprole 4y ago
> can't fully represent heterogeneous values in a dict, given that you can't do this _at all_ in many statically compiled languages.
This isn't really true. For example, in Java it's Map<K,Object>. For languages without subtyping, existential types are often used. It's quite common to see in infrastructural code, e.g. caching.