There are so many operators in C++, for example '!=', '*', '/=' and whatever. I'd like a new one: The '!?' operator. And I'd like to have the possibility to write it everywhere. Really, everywhere. Its default functionality should be that it does nothing at all. With this, it would be possible to enrich your code easily. Example: You have to work with code which looks like this:
[++*foobar]-=(baz*)--bar + x ? 0xff:0x1<< 1; |
Not easy to read, eh? But with the !? operator, this will change dramatically:
!? [++*foobar !?!?]-=(baz*)--bar !?!? + x ? 0xff:0x1<< 1; !?!?!?!?!?!? |
Within just a fraction of a second, you'll now immediately see that you won't have to spend time to try to understand that code. Thanks, !? operator.
For another example of a place where more operators would be good ("::=", " ", postfix ops), see the Spirit parsing library (http://www.boost.org/libs/spirit/).