News for hackers. Stuff that matters.
Re:Bottom Type in F# by masklinn on Wednesday September 23, 2020 @06:12AM (#24565176)
Conceptually, void is a singleton type: it has one value. So a function which returns void does return, just without anything useful.

Bottom has no value, so a function which “returns” bottom can not terminate.

Practically, this means it either loops forever or “breaks” e.g. panics or exits the program.

There are no comments on this comment yet.