[Wish] ElseIf

Discuss the future of the AutoHotkey language
just me
Posts: 5510
Joined: 02 Oct 2013, 08:51
Location: Germany

[Wish] ElseIf

Post by just me » 01 Jan 2018, 06:51

Related: a080: same-line if parsing error
lexikos wrote:I had planned to make a decision on whether to remove it or add same-line actions for other control flow statements (where possible). I was most likely going to decide to remove it, ...
Excellent, remove it.
lexikos
Posts: 6175
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: [Wish] ElseIf

Post by lexikos » 01 Jan 2018, 08:15

So your wish is to disallow same-line actions for else, try and finally, but instead add an elseif statement?

No thanks.

The only reason I gave in the "related" post does not apply to else, try or finally: they do not allow a delimiting comma in v2.
_3D_
Posts: 186
Joined: 29 Jan 2014, 14:40

Re: [Wish] ElseIf

Post by _3D_ » 01 Jan 2018, 17:33

1.elseif - will be step back in autohotkey syntax evolution - it is nothing more than else if.
2.Removing same-line actions - made script longer but more readable

Code: Select all

if isFunc("myFunc"), myFunc() ;one line
if isFunc("myFunc")	;one
	myFunc()		;two lines
AHKv2.0 use the future now.
Post Reply

Return to “AutoHotkey v2 Development”