Deprecate `!a == b`
Dennis
dkorpel at gmail.com
Wed Aug 14 15:41:13 UTC 2024
On Wednesday, 14 August 2024 at 15:04:13 UTC, IchorDev wrote:
> I feel like integer promotion is a much more pressing issue in
> that department. It’s one of the few things I wish we’d just
> bin because it’s so atrocious.
Oh, I thought the list represented things you _didn't_ want to
see in the language. But your point is rather that D is not
consistent about this kind of error prevention?
> And personally I’ve been screwed over by arithmetic operator
> precedence on many occasions.
Same, which is why I often defensively parenthesize expressions
with binary operators.
> I don’t think I said that?
My bad, I thought your `!myInt == myBool` example was based on
something you wrote in the past.
More information about the dip.ideas
mailing list