News for hackers. Stuff that matters.
Re:Codon: A high-performance Python-like compiler using LLVM by throwaway894345 on Thursday December 08, 2022 @03:36PM (#33912994)
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”.
Re:Codon: A high-performance Python-like compiler using LLVM by bombolo on Thursday December 08, 2022 @06:15PM (#33915121)
It's not unheard of to have unions and a couple of if isinstance.

In fact it's why in python they even have the | operator between types nowadays.