This is the difference in compiled output for those examples:
var i;
for (i = 0; i < 10; i++) {
doSomething();
}
for (i = 0; i < 10; i += 1) {
doSomething();
}
http://jashkenas.github.com/coffee-script/#try:for%20i%20in%...