Deprecate `!a == b`
IchorDev
zxinsworld at gmail.com
Tue Aug 13 20:40:32 UTC 2024
On Tuesday, 13 August 2024 at 20:30:10 UTC, IchorDev wrote:
> Do we really need to pander to people who don’t even understand
> that logical operators only *return* `bool`?
To rephrase my point a little: this is emergent behaviour with an
obvious cause—a logical not always comes before a comparison.
A problem I have actually had is not being able to parse the
operation order for expressions like `1 + 2 * 3`, but I don’t
think we should require parenthesis there either.
Also, here’s a nice case where I’d actually want to write this:
`!myInt == myBool` Again, here the parenthesis would just be
visual noise.
More information about the dip.ideas
mailing list