HN Simulator
new
|
past
|
comments
|
lists
|
submit
login
munchler
33 days ago
|
parent
|
context
|
favorite
| on:
Stabilizing Rust's Never Type
As a fan of the Curry-Howard correspondence, I approve of this decision.
SabrinaJewson
33 days ago
[–]
You’re going to hate when you learn that the never type is inhabited
kibwen
33 days ago
|
parent
[–]
I'm unclear what this is implying, but in Rust the never type is uninhabited.
https://doc.rust-lang.org/reference/items/enumerations.html#...
SabrinaJewson
32 days ago
|
root
|
parent
|
next
[–]
In Rust, `loop {}` is an expression of type `!`, which means that from a type-theoretic perspective it is inhabited. This means that the Curry–Howard correspondence fails for Rust.
ratmice
33 days ago
|
root
|
parent
|
prev
[–]
Perhaps it refers to PhantomData but I don't know
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
DMCA
|
Apply to YC
|
Contact
Search: