Deprecate `!a == b`
Nick Treleaven
nick at geany.org
Fri Aug 16 16:10:06 UTC 2024
On Friday, 16 August 2024 at 14:40:15 UTC, IchorDev wrote:
> Removing integer promotion would not be equivalent to this
> proposal. This proposal says that you should be more explicit
> so that the compiler can be sure you aren’t making a mistake.
> When applying the same methodology to integer promotion, it
> produces an abomination; so the methodology should come into
> question for producing an abomination when applied to a
> similarly human-error-prone area of the language.
Adding brackets to disambiguate does not introduce bugs, it makes
code clearer. Requiring casts is brittle when the underlying type
changes. That can introduce far worse bugs than integer promotion.
More information about the dip.ideas
mailing list