Generic memory allocation in D

cc cc at nevernet.com
Fri Mar 8 17:12:52 UTC 2024


On Monday, 4 March 2024 at 09:53:17 UTC, Walter Bright wrote:
> It means I don't have to use ! in:
>
>     if (foo())
>     {
>         error();
>         return;
>     }

Can you add a comment that says "the use of a true bool return 
here as an error is favored as checking `if (!foo())` results in 
a significant measurable performance decrease" so that when we're 
all dead and buried future generations will know why the 
backwards logic was necessary



More information about the Digitalmars-d mailing list