Syntactic simplification for hotstring multiline
Posted: 28 Sep 2017, 08:56
I propose to omit the return directive at the end of a multi-line hotstring definition when there is only one calling line to a function.
One case is that shown in the following link:
https://autohotkey.com/boards/viewtopic.php?t=36262
In fact, when we have only one call line to a function, the return directive could be considered implicit and therefore superfluous to have a compact and readable code.
From:
To:
introducing a directive F (or equivalent) at the beginning of the hotstring :F:word:: to interpret the right part not as a string but as a function.
If it was possible to introduce this modification even in AHK v1, for testing, it would be great!
One case is that shown in the following link:
https://autohotkey.com/boards/viewtopic.php?t=36262
In fact, when we have only one call line to a function, the return directive could be considered implicit and therefore superfluous to have a compact and readable code.
From:
Code: Select all
::word::
functionX(var)
return
Code: Select all
:F:word:: functionX(var)
If it was possible to introduce this modification even in AHK v1, for testing, it would be great!