Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
nextaccountic
on June 29, 2025
|
parent
|
context
|
favorite
| on:
Weird Expressions in Rust
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)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: