Thanks to you all, I've now got for loops on the brain. The other day I reached for a tool I'm used to in ActionScript,
the loop label, and discovered that Haxe has no equivalent. Haxe's loops are distinctive, so there may be a reason to avoid implementing them, but I'd like to know what that reason is.
That said, I'm not a fan of changing Haxe unnecessarily. It'd be neat to write a macro that added this feature. Unfortunately, I don't think there's any system in place that allows a macro to do this sort of thing– sifting through every module in a project right before their expressions are checked for errors, finding the ones where a for loop (or any scope, actually) is labeled and then doing the macro dirty work. Even if the goal was to implement this for a single class, how would scope labeling work? I guess a labeled scope would be converted into an inline function that's immediately called? Is attempting a macro implementation even worth it?