Alternatives to exceptions for error handling

Paul Backus snarwin at gmail.com
Mon Nov 23 12:58:21 UTC 2020


On Monday, 23 November 2020 at 12:07:55 UTC, Dominikus Dittes 
Scherkl wrote:
>
> At least pure functions should never be @discardable.
> So discarding the return value of a pure function should always 
> be an error.

Indeed, the D compiler already issues a warning if you discard 
the result of a pure nothrow function.


More information about the Digitalmars-d mailing list