Hacker News new | ask | show | jobs
by djcb 5293 days ago
similarly, the 'approaches' pseudo-operator:

while (i --> 0) { /* do something */ }

1 comments

For some variety, there's also the left-handed "goes to" operator.

    while (5 <-- x) {} //omits the zero
and the much easier to type

    while (x --- 0) {} //equivalent to the "-->" operator