Lably
Skip to content

Bottom type

  • 4 min read
  • 3 chapters

Related on Lably

Through Type theory, Mathematical logic and Exception handling

Where such a type exists, it is often represented with the up tack (⊥) symbol.

Relation with the empty type

When the bottom type is uninhabited, a function whose return type is bottom cannot return any value, not even the lone value of a unit type. In such a language, the bottom type may therefore be known as the zero, never or empty type which, in the Curry–Howard correspondence, corresponds to falsity.

However, when the bottom type is inhabited, it is then different from the empty type.

Sign in to keep reading

2 more chapters are free with a Lably account.

More in Computing and communication