jNizM wrote:Would not it be clearer, less confused and easier for new and beginner to learn and remember one thing like just the function syntax?
I personal see no benefit for the command over the function syntax why we should have both.
This would mean beginners need to learn expressions first before using AutoHotkey which is confusing when you are not a programmer.
Imagine below simple script would go over 1000 lines, users would need to write around 7500 more characters, even with suggested additional Gui functions you would need to write 5750 additional characters, that is just crazy.
It is like in AutoIt where you have to write $ before every variable to indicate that it is a variable, having only functions would mean to move in same direction (writing hundreds of useless characters).
Code: Select all
; Command syntax 79 characters
Gui,Add,Text,w100,Test
Gui,Add,Edit,w100,Test
Gui,Add,Button,w100,Test
Gui,Show
; Function syntax 109 characters
Gui("Add","Text","w100","Test")
Gui("Add","Edit","w100","Test")
Gui("Add","Button","w100","Test")
Gui("Show")
; Even with your shorthand functions
; 75 characters
GuiAdd,Text,w100,Test
GuiAdd,Edit,w100,Test
GuiAdd,Button,w100,Test
GuiShow
; Function syntax 98 characters
GuiAdd("Text","w100","Test")
GuiAdd("Edit","w100","Test")
GuiAdd("Button","w100","Test")
GuiShow()