Seeing you replying to this topic today was almost a little spooky, for unknown reasons, I happened to think about this just today, I was thinking I would comeback and ask if variadic calls would be fixed, and then,
I hadn't notice, thanks .That was fixed in v2.0-a084.
Zero or one definitely is my usual use-case for it, eg, detecthiddenwindows true is very convenientSide note: calls with zero parameters are where I most want to omit parentheses: ListVars, Pause, MsgBox, etc.
Good.I see no reason to think the asterisk would terminate the parameter list.
I guess I was thinking of something (unusual) like this,Both of the above are method calls
Code: Select all
obj.xyz
class obj {
xyz[]{
get{
msgbox
}
}
}
I see.obj.xyz() is always a method call, even if it might be implemented by calling a property function.
I agree that the unreadability argument is not very strong for this reason. Since last time, it turns out I do use this feature frequently, plain and simple, I do it when I like it.It won't force the user to write less readable code against their will
Cheers.