Discussion Thread: DIP 1034--Add a Bottom Type (reboot)--Community Review Round 1
Johannes Loher
johannes.loher at fg4f.de
Wed May 6 21:44:17 UTC 2020
Am 06.05.20 um 23:07 schrieb Johannes Loher:
> ...
After writing this, I just realized another thing: At the moment, it is
required that the main function is declared using one of the following
forms:
void main() { ... }
void main(string[] args) { ... }
int main() { ... }
int main(string[] args) { ... }
(https://dlang.org/spec/function.html#main)
With this DIP, might it make sense to also allow noreturn as a return
type for main, just for consistency?
More information about the Digitalmars-d
mailing list