~=
Check this out:
http://www.google.com/search?q=%22~=%22
Any reason why we couldn't add ~= to the c spec so that we could say:
myVar ~= myFlag;
Which would do the same thing as:
myVar &= ~myFlag;
http://www.google.com/search?q=%22~=%22
Any reason why we couldn't add ~= to the c spec so that we could say:
myVar ~= myFlag;
Which would do the same thing as:
myVar &= ~myFlag;
5 comments
[ 2.1 ms ] story [ 11.6 ms ] thread* inconsistent with other compound assignment operators
* looks like regular expression matching operator used in other languages
Pros:
* shortens certain expressions by one character
I don't think it's worth it.
What does the search query have to do with it?