LANGUAGES Signal 471
Rust stabilizes the never type, denoted by an exclamation mark, for functions that never return
Illustration only Photo by Mitchell Luo on Unsplash
Rust is stabilizing its "never" type, denoted by "!", to mark functions that never return and other places where a value cannot occur.
This gives engineers a standard way to represent diverging functions and impossible values in the type system. The provided material is thin, so the broader implications for codebases are not detailed.
Written by elseif from the cluster below · every claim links back to a sourceThe three things worth knowing
Rust is stabilizing the "never" type, represented by an exclamation mark ("!").
The type marks functions that never return and places where a value cannot occur.
The provided material does not detail the costs or limitations of this stabilization.
THE CLUSTER