Re:New C++ experimental feature: The tadpole operators
by im3w1l on Monday May 25, 2015 @03:24PM
(#9601319)
There is the down-to pseudo-operator --> as in
[ Parent
| on HN ]
Re:New C++ experimental feature: The tadpole operators
by repsilat on Monday May 25, 2015 @06:15PM
(#9601951)
In addition to the rightward arrow, there's the leftward arrow:
int x = 3;
while(n <-- x) {
cout << x << endl;
}
which is different because it doesn't include the lower bound `n`. And of course, if typing the ">" is too taxing, the "---" operator is equivalent to the "-->" operator: int x = 3;
while(x --- n) {
cout << x << endl;
}
A few more goodies in this style at http://steike.com/code/useless/evil-c/ (home of the zip-quine.)