News for hackers. Stuff that matters.
Re:Bottom Type in F# by eithed on Wednesday September 23, 2020 @11:30AM (#24568209)
Oh, so you have the distinction between `function foo() { return; }` and `function bar() {}`. From the languages I'm accustomed to, yes, second syntax is first syntax under the hood.

Thanks for the explanation!

Re:Bottom Type in F# by masklinn on Wednesday September 23, 2020 @01:27PM (#24569578)
> Oh, so you have the distinction between `function foo() { return; }` and `function bar() {}`. From the languages I'm accustomed to, yes, second syntax is first syntax under the hood.

The second function terminates, same as the first one, there's no real difference between them.

A bottom-returning function would be something like

    function foo() { for(;;) {} }
that genuinely never terminates and thus never exits.