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;
1–6 of 6 posts
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;
* 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?
Cons: * 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?
Cons: * 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?
I was just shocked that no language anywhere had thought of it yet. I can't even remember the last time I did a search that came up empty.