I admit that I asked a question about why the Closure Compiler doesn’t abbreviate a certain code that looks at first glance a few days ago, but this reason is not applicable in this case, and I'm not quite sure why it is shortened here.
What is my code:
var a = 0;
function b() {
return a++ >= 3;
}
Now there is pre-increment and post-increment. The difference lies in the return value - a++returns a, and then increases it, ++afirst increases a, and then returns it.
What this means is that my code can be shortened to (without considering removing spaces):
var a = 0;
function b() {
return ++a > 3;
}
However, the Closure compiler does not seem to modify (or recognize) this.
, : ++a > a++ >=?