WingNews logo WingNews
top | new | best | ask | show | jobs
top | item 44401478

(no title)

dmkolobov | 8 months ago

On the more mainstream side of things, Typescript also has a bottom type called `never` which is used to type unreachable/exceptional code.

discuss

order

saghm|8 months ago

Rust has this too: https://doc.rust-lang.org/std/primitive.never.html
powered by hn/api // news.ycombinator.com