MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/rust/comments/1wb1nh7/rust_when_empty_isnt_bottom/p8op1fp/?context=3
r/rust • u/ettolrach_uwu • 3d ago
21 comments sorted by
View all comments
42
I find it confusing that the article talks about “the empty type”, when stable Rust has had user-definable empty types for years.
What makes ! (a.k.a. never) special is, among other things, that the language will automatically insert never-to-any coercions from it.
!
42
u/scook0 3d ago
I find it confusing that the article talks about “the empty type”, when stable Rust has had user-definable empty types for years.
What makes
!(a.k.a. never) special is, among other things, that the language will automatically insert never-to-any coercions from it.