On Sunday, 12 November 2017 at 13:34:50 UTC, Dmitry Olshansky wrote:

However, I’d hate to rewrite things like:

if (a & (flag1 | flag2))

to

if ((a & (flag1 | flag2)) != 0)

When the first is quite obvious.

I don't think the proposal to deprecate integer literal conversions to `bool` would affect that as there doesn't appear to be an integer literal in the code.

Mike

Reply via email to