Re: why was LoopParse (no space) removed?
Posted: 07 Jan 2018, 13:56
Internallly, certainly LoopParse would be easier to detect compared to Loop Parse, in the sense that LoopParse doesn't need to be distinguished from Loop [Count] where the count expression starts with a variable named, eg, Parse. These examples are
a bit ridiculous ofc, but still, it is not very nice,
Code: Select all
Parse := 2 var := 3 ; Interpreted as a parsing loop Loop Parse + var Msgbox "Loop 1:`t" A_index "`t" A_LoopField ; Interpreted as Loop count Loop Parse+var Msgbox "Loop 2:`t" A_index "`t" A_LoopField ; Load time error - not interpreted as loop count due to variable named 'Parse' ;Loop Parse . var ; Msgbox "Loop 3:`t" A_index "`t" A_LoopField
I prefer it without the comma, for some reason I've become unfond of initial commasHaving no particularly good reasons for allowing a comma here may mean this leads to removing the comma entirely, or maybe not