|
|
|
|
|
by throwaway894345
1285 days ago
|
|
I mean, it depends on what you mean by “type”. A list of some Protocol type (what other languages call “interfaces”) is still a homogenous list even though the concrete types are heterogeneous. This is almost always what you want when you’re thinking of “a heterogeneous list”. |
|
In fact it's why in python they even have the | operator between types nowadays.