[idea] __set meta function parameter order

Discuss the future of the AutoHotkey language
Helgef
Posts: 2483
Joined: 17 Jul 2016, 01:02
Contact:

[idea] __set meta function parameter order

19 Sep 2017, 07:21

In addition to the meta function ideas here, I would like to add the idea of changing __Set([Key, Key2, ...], Value) to __set(value [, key1, key2, ...]).
Pro, by example:

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus


Cons: I couldn't think of any, please comment.

Cheers and thanks for reading. :)

Edit: Re: lexikos :thumbup:
Last edited by Helgef on 26 Nov 2017, 02:10, edited 1 time in total.
lexikos
Posts: 5457
Joined: 30 Sep 2013, 04:07
GitHub: Lexikos

Re: [idea] __set meta function parameter order

26 Nov 2017, 01:20

It will probably be done that way. It is already done that way for property-set methods, since it simplifies the implicit 'value' parameter. (Each setter has two implicit parameters: 'this' and 'value'.)

Return to “AutoHotkey v2 Development”

Who is online

Users browsing this forum: No registered users and 3 guests