v2.0-a085-996f0b5

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

v2.0-a085-996f0b5

Post by just me » 24 Jan 2018, 03:47

I needed some time to understand what this example

Code: Select all

myfunction [
            "item 1",
            "item 2",
           ], 2
shall do. It's looking terrible.

Also, while this is valid

Code: Select all

myfunction([
            "item 1",
            "item 2",
           ],
           2
          )
this isn't

Code: Select all

myfunction [
            "item 1",
            "item 2",
           ],
           2
IMO, it's just another reason to scrap commands.

I also confirme this bug.
guest3456
Posts: 2419
Joined: 09 Oct 2013, 10:31

Re: v2.0-a085-996f0b5

Post by guest3456 » 24 Jan 2018, 11:17

just me wrote:I needed some time to understand what this example

Code: Select all

myfunction [
            "item 1",
            "item 2",
           ], 2
shall do. It's looking terrible.
The beauty (:rollseyes:) of being able to call functions with "command-like" syntax. Aka, just omitting the parentheses

I preferred not to scrap command syntax when the command parameters were still literal text and used %derefs% as in v1. But now that its changed where 'commands' are using all expressions, I see no reason to keep them in.

Post Reply

Return to “AutoHotkey v2 Development”