minParams of the bind function should have return 1, while currently any bind func will return 0.
In fact, arguments passed to a func in total can never be more or less, if the code of the func is written for a specific paramCount. However, parameters of bind funcs act like variadic paras but in fact it's not. It is against the fact.
Therefore, I wish properties of a bind function could show the fact more exactly.
[Mod action: Moved topic from “AutoHotkey Development” which is for more broad discussions about the future of the AutoHotkey language. Most of your”Wish” posts should be posted here.]
In the above picture, [V2.0.10:] Wish minParam of a bind func could show the fact
Re: [V2.0.10:] Wish minParam of a bind func could show the fact
If don't apply this wish, callbackCreate(Func.bind(ths)) will work wrongly on paraCount.