proposed @noreturn attribute

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Sat Jul 8 10:30:59 PDT 2017


On Saturday, 8 July 2017 at 17:14:32 UTC, Andrei Alexandrescu 
wrote:
>
> What is the signature of a function that logs something to a 
> file and ends in assert(0)?
>

I do get your point.
However I still doubt that this is worth a the additional 
language complexity.

Usually the clue would be in the name.
sth. like
void logAndDie(string lastWords) { ... }


More information about the Digitalmars-d mailing list