[Wish] ElseIf

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

[Wish] ElseIf

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: 5904
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: [Wish] ElseIf

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: 176
Joined: 29 Jan 2014, 14:40

Re: [Wish] ElseIf

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] [Download] GeSHi © Codebox Plus

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

Return to “AutoHotkey v2 Development”

Who is online

Users browsing this forum: No registered users and 2 guests