News for hackers. Stuff that matters.
Re:Rust 1.100.0 by afdbcreid on Thursday November 12, 2026 @04:19PM (#50474437)
Also called top and bottom types, for this reason.
Re:Rust 1.100.0 by steveklabnik on Thursday November 12, 2026 @04:31PM (#50474591)
Any is not a top type and ! is not a bottom type, actually. They are sort of similar from a lay perspective if you squint, though.
Re:Rust 1.100.0 by afdbcreid on Thursday November 12, 2026 @05:00PM (#50474931)
Why not? I mean if you refer to Rust specifically, yes, because there is no subtyping except for lifetimes, only coercion (and `Any` also cannot contain any type). But in general, why not?
Re:Rust 1.100.0 by steveklabnik on Thursday November 12, 2026 @05:14PM (#50475106)
I am speaking about Rust specifically, yes.