Re: v2-thoughts Discussion
Posted: 11 Jun 2017, 14:06
Due to If (TRUE), MsgBox() shows an error, If (TRUE) {MsgBox(1), MsgBox(2)} would be fine. Or am I missing something?...
BTW, Good job
BTW, Good job
Let's help each other out
https://www.autohotkey.com/boards/
I have used dynamic variable creation for repeated string concatenations, which performs (or at least did at the time) much better than using array/map. Ofc, that wouldn't be a reason to enable dynamic variables rather than optimising arr[x] .= ....Although I'm not sure I've ever seen a case where dynamically creating variables was the best solution to a problem
Code: Select all
MsgBox ["deref_me"]*
; EOF marker works.
Code: Select all
MsgBox ["deref_me"]*
if (1 + 1 == 2) ; fails as * begins a continuation section.
MsgBox
This would not be an improvement, nor would it be backward-compatible.iseahound wrote:I wonder if function statements can be special cased to handle the postfix ? and * better.
There would be more ambiguity, not less, if I implemented your suggestion.iseahound wrote:It just feels to me that parsing has gotten very ambiguous with prefix / infix / postfix operators and continuation sections
Function call statements cannot be variadic; that is, the parameter list must be enclosed in parentheses (or brackets for a property).
The question mark must be followed by one of the following symbols (ignoring whitespace): )]},:.
I have no idea what you mean.iseahound wrote:perhaps something a little stronger is needed to keep things clear.