[idea] __set meta function parameter order
Posted: 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:
Cons: I couldn't think of any, please comment.
Cheers and thanks for reading.![Smile :)](./images/smilies/icon_e_smile.gif)
Edit: Re: lexikos![Thumbup :thumbup:](./images/smilies/icon_thumbup.gif)
Pro, by example:
Code: Select all
__set(val, keys*){ ; new
; using keys and val
}
; vs
__set(p*){ ; old
val := p.pop()
keys := p ; for clarity but ofc not needed
; using keys and val
}
; Note:
__set(byref handled/result, val, keys*) ; byref param still possible
Cheers and thanks for reading.
![Smile :)](./images/smilies/icon_e_smile.gif)
Edit: Re: lexikos
![Thumbup :thumbup:](./images/smilies/icon_thumbup.gif)