Niko Matsakis (Baby Steps) personal blog

Never patterns, exhaustive matching, and uninhabited types in Rust

One of the long-standing issues that we’ve been wrestling with in Rust is how to integrate the concept of an “uninhabited type” – that is, a type which has no values at all. Uninhabited types are useful to represent the “result” of some computation you know will never execute – for example, if you have to define an…
Points
161
HN comments
76
Submissions
1
Cited by
0 commenters

Software EngineeringProgramming Languages2018

On Hacker News

SubmittedTitle on HNPointsComments
Aug 18, 2018Never patterns, exhaustive matching, and uninhabited types in Rust by fanf216176

More from Niko Matsakis (Baby Steps)

All 18 posts →

Related posts from the same era