News for hackers. Stuff that matters.
Re:Codon: A high-performance Python-like compiler using LLVM by cjohnson318 on Thursday December 08, 2022 @03:24PM (#33912844)
Maybe a list with ThingObject or None, but my lists are usually homogenous.
Re:Codon: A high-performance Python-like compiler using LLVM by mrfox321 on Thursday December 08, 2022 @05:16PM (#33914479)
thats just homogenous Sequence[Optional[T]], though.
Re:Codon: A high-performance Python-like compiler using LLVM by cjohnson318 on Thursday December 08, 2022 @10:22PM (#33917027)
Yeah, that's a better way of putting it :) 90% of the time, I'm something like Sequence[T], but I'm sure I've used Sequence[Optional[T]] a couple of times. I mean, I could drive donuts in the Piggly Wiggly parking lot at 3a, I just don't, and the same for heterogenous lists.
Re:Codon: A high-performance Python-like compiler using LLVM by agumonkey on Friday December 09, 2022 @12:04AM (#33917668)
And everything is a subtype of Any. The usual 'static typing' of dynlangs.
Re:Codon: A high-performance Python-like compiler using LLVM by bombolo on Thursday December 08, 2022 @06:16PM (#33915131)
well list[int|str] is as well