Deprecate `!a == b`
Guillaume Piolat
guillaume.piolat at gmail.com
Tue Aug 13 12:43:01 UTC 2024
On Tuesday, 13 August 2024 at 10:14:29 UTC, Timon Gehr wrote:
> A bug that crops up now and then in D is that someone negates
> `a == b` by prepending a `!`. The result is `!a == b`. This
> parses as `(!a) == b` and will often silently do the wrong
> thing because negation implies cast to `bool`, and `bool` can
> be compared with integral types and `enum` members.
Yes please!
More information about the dip.ideas
mailing list