Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: