ELSEIF
Your brief EB
449 stories from 174 feeds 1014 clusters Refreshed 9 minutes ago next pull 19:40

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.

WHY IT MATTERS

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 source

The three things worth knowing

01

Rust is stabilizing the "never" type, represented by an exclamation mark ("!").

02

The type marks functions that never return and places where a value cannot occur.

03

The provided material does not detail the costs or limitations of this stabilization.

THE CLUSTER

Same story, 1 feed.

ORDERED BY FIRST SEEN
LWN.net [$] Stabilizing Rust's never type Open ↗