There should be a Boolean.flip() that gets compiled into an assignment

I wish I can do flip() on any Boolean instead of doing something.bool = !something.bool, this should be pretty easy to make right?

While interesting suggestion, I think it is kinda long shot.
The closest thing that we have to it is post/pre-inc/decrement (++intVar) and it has special sematics which I don’t think the team will want to spread without a huge demand from the community.

See this thread for some discussion on the idea: Flipping a Boolean without Repeating Yourself