36
Announcing Rust 1.92.0 | Rust Blog
(blog.rust-lang.org)
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Credits
I think you're misunderstanding the never type. The never type is not a hack at all. It's a very natural part of the type system. Just as you have the unit type
(), which is the canonical type with only 1 value, you also have the never type, the canonical type with 0 values.This is extremely useful in generic code. See my other comment in this thread.
What do you mean with this? I can't really decipher it. What alternative to the never type would you want?