Discussion Thread: DIP 1038-- at nodiscard--Final Review
snarwin at gmail.com
Thu Feb 4 23:52:45 UTC 2021
On Thursday, 4 February 2021 at 20:15:07 UTC, Q. Schroll wrote:
> Having an attribute for the common case seems backwards to me.
> More often than not, it will be omitted. It is probably better
> to do it the other way around: Add a @discard (or @maydiscard
> or @discardable) attribute to apply to printf, readf, and
> friends to indicate that discarding their result is an intended
> form of their use.
The fact that this approach would break a huge amount of existing
code is already enough to disqualify it from further
More information about the Digitalmars-d