News for hackers. Stuff that matters.
Re:Weird Expressions in Rust by nextaccountic on Sunday June 29, 2025 @12:38AM (#44410394)
Return has the ! type. It's a type with no values, similar to an enum without variants, like this:

    enum Never {
    }
Languages like OCaml, Haskell as well as Rust have types with no values (called uninhabited types)

There are no comments on this comment yet.