News for hackers. Stuff that matters.
Re:Python’s “type hints” are a bit of a disappointment to me by grumpyprole on Friday April 22, 2022 @01:54AM (#31118642)
> 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.

There are no comments on this comment yet.