Deprecate `!a == b`
Timon Gehr
timon.gehr at gmx.ch
Thu Aug 15 16:12:50 UTC 2024
On 8/14/24 20:27, IchorDev wrote:
> On Wednesday, 14 August 2024 at 14:48:42 UTC, user1234 wrote:
>> Well, just wanna say that this is an easy check to implement in
>> Dscanner. That does not require any context. Just match the pattern in
>> the AST and issue a warning.
>
> Sounds like a better idea to do that. I’m not a fan of having more ‘it’s
> unintuitive therefore we’ll force the code to be unreadable’ features
> like bitwise operators requiring parenthesisation.
I can't say I ever wanted `a & b==c`.
Anyway, this is indeed the same kind of thing, and it would be
consistent to ban this case too.
More information about the dip.ideas
mailing list