DIP 1038--"@mustUse" (formerly "@noDiscard")--Accepted

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Wed Feb 9 19:48:59 UTC 2022


On Wednesday, 9 February 2022 at 17:48:29 UTC, Guillaume Piolat 
wrote:
> There is also the Nim "discard" statement.

Just change the default to not allowing return values to be 
discarded. When you really want to, do:

```
cast(void) function_with_return_value(…)
```

Or something like that.



More information about the Digitalmars-d-announce mailing list