Feedback Thread: DIP 1034--Add a Bottom Type (reboot)--Community Review Round 1
Piotr Mitana
piotr.mitana at gmail.com
Mon May 11 08:48:47 UTC 2020
I personally like the Scala's concept to name the bottom type
"Nothing". I would therefore suggest to similarily name it
"nothing" in D as well.
To me it sounds more natural and self-explanatory. noreturn look
more like a keyword also due to its similarity to return keyword.
noreturn suggests clearly that the function will not return, but
it is natural only for this use of the bottom type, and as the
DIP states, there are more uses.
Although returning nothing is a little bit less clear that
noreturn, everyone knows void, so it has to be something
different. And nothing[] looks much more in place then noreturn[].
So - pun intended - nothing is a thing! ;)
More information about the Digitalmars-d
mailing list