A language should not contain too much very detailed/problem-specific syntax sugars, instead the syntax should be general and abstract to allow those loops easily.
As we have now kind of a For-Each Loop, all "Iterate over all items"-Tasks can be written like:
A good example is the File-Loop, a nice replacement would look like:
Code:
for each, file in File.GetFiles("C:\MyFolder\.*")
{
msgbox % "Found a file: " file
}
Same for the ini; eg:
Code:
for each, sectionName in Ini.GetSectionNames("C:\MyFolder\settings.ini")
{
msgbox % sectionName ; show all section names
}
The only question is, if the Ini/File Classes are shipped directly with AHK, or if they are to specific.