Details
-
Type:
Improvement
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: Language Design
-
Labels:None
-
Number of attachments :
Description
Two people have recently noted the lack of full C-style for-loops to me in disparaging tones. That is, we can't say:
for( var i : Int = 0, var j : Int = 100; i < j; i++, j--) { ... i ... j ... }
I don't know that it's a big deal – I personally use while loops for this sort of thing, even in C – but there is some value to not gratuitously differing from C standards in small ways. Completely disregarding C is fine, but if we've got something that's 95% C-compliant anyways and there is no reason not to do the remaining 5% save our own good taste, we might as well do the last 5% and good taste be damned.
As noted in the comment to
XTENLANG-1173, the correct syntax for this is:It could be documented more prominently, of course.
XTENLANG-1173, the correct syntax for this is: